summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rtsx_usb.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-09-26 12:55:31 +0200
committerLee Jones <lee.jones@linaro.org>2014-11-25 16:18:42 +0000
commit1ab589c72ef66f5f281d658ab606e02d661031d8 (patch)
treeea9d86ddad4e68549e0efab08ebd0677aa170a05 /drivers/mfd/rtsx_usb.c
parentbdb0066df96e74a4002125467ebe459feff1ebef (diff)
downloadlinux-1ab589c72ef66f5f281d658ab606e02d661031d8.tar.gz
linux-1ab589c72ef66f5f281d658ab606e02d661031d8.tar.xz
mfd: Use mfd_add_hotplug_devices() helper
Use mfd_add_hotplug_devices helper to register the subdevices. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rtsx_usb.c')
-rw-r--r--drivers/mfd/rtsx_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/rtsx_usb.c b/drivers/mfd/rtsx_usb.c
index 9cf98d142d9a..dbdd0faeb6ce 100644
--- a/drivers/mfd/rtsx_usb.c
+++ b/drivers/mfd/rtsx_usb.c
@@ -647,8 +647,8 @@ static int rtsx_usb_probe(struct usb_interface *intf,
/* initialize USB SG transfer timer */
setup_timer(&ucr->sg_timer, rtsx_usb_sg_timed_out, (unsigned long) ucr);
- ret = mfd_add_devices(&intf->dev, usb_dev->devnum, rtsx_usb_cells,
- ARRAY_SIZE(rtsx_usb_cells), NULL, 0, NULL);
+ ret = mfd_add_hotplug_devices(&intf->dev, rtsx_usb_cells,
+ ARRAY_SIZE(rtsx_usb_cells));
if (ret)
goto out_init_fail;