driver core: Skip unnecessary work when device doesn't have sync_state()
commit77036165d8bcf7c7b2a2df28a601ec2c52bb172d
authorSaravana Kannan <saravanak@google.com>
Fri, 21 Feb 2020 08:05:10 +0000 (21 00:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 12:46:03 +0000 (4 13:46 +0100)
treec8fbe13c7c5eed2d5f74b2cbf36d763b3d3a00eb
parentac338acf514e7b578fa9e3742ec2c292323b4c1a
driver core: Skip unnecessary work when device doesn't have sync_state()

A bunch of busy work is done for devices that don't have sync_state()
support. Stop doing the busy work.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200221080510.197337-4-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c