diff options
author | Johan Hovold <johan@kernel.org> | 2014-09-26 06:55:31 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-11-25 11:18:42 -0500 |
commit | 1ab589c72ef66f5f281d658ab606e02d661031d8 (patch) | |
tree | ea9d86ddad4e68549e0efab08ebd0677aa170a05 /drivers/mfd/rtsx_usb.c | |
parent | bdb0066df96e74a4002125467ebe459feff1ebef (diff) |
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.c | 4 |
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, | |||
647 | /* initialize USB SG transfer timer */ | 647 | /* initialize USB SG transfer timer */ |
648 | setup_timer(&ucr->sg_timer, rtsx_usb_sg_timed_out, (unsigned long) ucr); | 648 | setup_timer(&ucr->sg_timer, rtsx_usb_sg_timed_out, (unsigned long) ucr); |
649 | 649 | ||
650 | ret = mfd_add_devices(&intf->dev, usb_dev->devnum, rtsx_usb_cells, | 650 | ret = mfd_add_hotplug_devices(&intf->dev, rtsx_usb_cells, |
651 | ARRAY_SIZE(rtsx_usb_cells), NULL, 0, NULL); | 651 | ARRAY_SIZE(rtsx_usb_cells)); |
652 | if (ret) | 652 | if (ret) |
653 | goto out_init_fail; | 653 | goto out_init_fail; |
654 | 654 | ||