Messages in this thread | | | From | Rob Herring <> | Subject | [PATCH 0/2] driver core: Refactor device unbind/probe fail clean-ups | Date | Wed, 23 Feb 2022 16:52:55 -0600 |
| |
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
| |