]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Read atomic counter once in driver_probe_done()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Mar 2020 12:20:22 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2020 12:33:25 +0000 (13:33 +0100)
commite790d30bc61880dd9a49a60af3ef1cc0a64d69b3
tree4fa8afaef32dfaf40c2ffd70baf1f201d8df0c6a
parent94a6737372bfa725b9eeb6d6140bdc48a8de12ef
driver core: Read atomic counter once in driver_probe_done()

Between printing the debug message and actual check atomic counter can be
altered. For better debugging experience read atomic counter value only once.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
Link: https://lore.kernel.org/r/20200324122023.9649-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c