mfd: Fix da903x_add_subdevs error path
This patch fixes da903x_add_subdevs error path: 1. return -ENOMEM if platform_device_alloc() fail. 2. call platform_device_put() if platform_device_add() fail. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Acked-by: NEric Miao <eric.y.miao@gmail.com> Acked-by: NMike Rapoport <mike@compulab.co.il> Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
Showing
想要评论请 注册 或 登录