summaryrefslogtreecommitdiff
path: root/drivers/base/bus.c
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2015-05-26 09:31:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-01 10:15:17 +0900
commit6d9d4b1469b0d9748145e168fc9ec585e1f3f4b0 (patch)
tree7b083155b6046ace5fd1d9ceed01c9261a9fa838 /drivers/base/bus.c
parentb6d2233f2916fa9338786aeab2e936c5a07e4d0c (diff)
downloadlwn-6d9d4b1469b0d9748145e168fc9ec585e1f3f4b0.tar.gz
lwn-6d9d4b1469b0d9748145e168fc9ec585e1f3f4b0.zip
base/platform: Remove code duplication
Failure path of platform_device_add was almost the same as platform_device_del. Refactor same code in a function. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/bus.c')
0 files changed, 0 insertions, 0 deletions