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: NRob Herring <robh@kernel.org> Signed-off-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录