[PATCH 0/2] driver core: Refactor device unbind/probe fail clean-ups

Rob Herring posted 2 patches 4 years, 3 months ago
drivers/base/dd.c | 80 ++++++++++++++++++-----------------------------
1 file changed, 30 insertions(+), 50 deletions(-)
[PATCH 0/2] driver core: Refactor device unbind/probe fail clean-ups
Posted by Rob Herring 4 years, 3 months ago
The same sequences of device clean-up code are duplicated 3 times.
Changes to this code are prone to missing one of the copies. This
series refactors the code into 2 common functions as there's some slight
differences in the intermediate steps.

Rob

Rob Herring (2):
  driver core: Refactor multiple copies of device cleanup
  driver core: Refactor sysfs and drv/bus remove hooks

 drivers/base/dd.c | 80 ++++++++++++++++++-----------------------------
 1 file changed, 30 insertions(+), 50 deletions(-)

-- 
2.32.0