drivers/net/wireless/scsc/udi.c:1100:231: error: 'refcount_t' has no member named 'counter'
SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
^
drivers/net/wireless/scsc/udi.c:1100:312: error: 'refcount_t' has no member named 'counter'
SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
^
drivers/net/wireless/scsc/udi.c:1100:357: error: 'refcount_t' has no member named 'counter'
SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
^
drivers/net/wireless/scsc/udi.c:1100:419: error: 'refcount_t' has no member named 'counter'
SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
^
drivers/net/wireless/scsc/udi.c:1100:464: error: 'refcount_t' has no member named 'counter'
SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
Change-Id: I8de110227cd5eab8e2d172ad2a25505545b7bf6c
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
kobj = &pdev->cdev.kobj;
kref = &kobj->kref;
- while (atomic_read(&kref->refcount) > 1) {
- SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
+ while (refcount_read(&kref->refcount) > 1) {
+ SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", refcount_read(&kref->refcount));
msleep(50);
}