diff options
author | Johan Hovold <johan@kernel.org> | 2014-09-26 12:55:31 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-11-25 17:18:42 +0100 |
commit | 1ab589c72ef66f5f281d658ab606e02d661031d8 (patch) | |
tree | ea9d86ddad4e68549e0efab08ebd0677aa170a05 /drivers/mfd/rtsx_usb.c | |
parent | mfd: syscon: Decouple syscon interface from platform devices (diff) | |
download | linux-1ab589c72ef66f5f281d658ab606e02d661031d8.tar.xz linux-1ab589c72ef66f5f281d658ab606e02d661031d8.zip |
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, /* 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; |