[9610] wlbt: Fix compilation error change atomic_read -> refcount_read (Android P)
authorTarun Karela <t.karela@samsung.com>
Wed, 30 May 2018 13:15:22 +0000 (14:15 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:48:27 +0000 (07:48 +0900)
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>
drivers/net/wireless/scsc/udi.c

index 36fb9c6af01177a67b581c21cb722d4a960c5251..1cfd011c098281a460b1f2278088b2884270bb07 100755 (executable)
@@ -1096,8 +1096,8 @@ static void slsi_cdev_destroy(struct slsi_dev *sdev)
 
        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);
        }