]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: skip removal test for non-removable drivers
authorRob Herring <robh@kernel.org>
Tue, 11 Oct 2016 18:41:02 +0000 (13:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 15:15:22 +0000 (09:15 -0600)
commite6bf7700ec054d43721e8f0283ad55d170e65cb9
treeadc2fe9d43bc3dc5e0564ce09429c4e69a96a251
parent1851cb92ff712dd97c8e90966589011220b5eb53
driver core: skip removal test for non-removable drivers

Some drivers do not support removal/unbinding. These drivers should have
drv->suppress_bind_attrs set to true, so use that to skip the removal
test.

This doesn't fix anything reported so far, but should prevent some other
cases. Some drivers will need fixes to set suppress_bind_attrs to avoid
this test.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=177021
Fixes: aa85926e06f2 ("driver core: add test of driver remove calls during probe")
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c