diff options
author | Johan Hovold <johan@kernel.org> | 2014-09-26 14:55:31 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-11-25 19:18:42 +0300 |
commit | 1ab589c72ef66f5f281d658ab606e02d661031d8 (patch) | |
tree | ea9d86ddad4e68549e0efab08ebd0677aa170a05 /drivers/mfd/viperboard.c | |
parent | bdb0066df96e74a4002125467ebe459feff1ebef (diff) | |
download | 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/viperboard.c')
-rw-r--r-- | drivers/mfd/viperboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/viperboard.c b/drivers/mfd/viperboard.c index e00f5340ed87..e6b3c70aeb22 100644 --- a/drivers/mfd/viperboard.c +++ b/drivers/mfd/viperboard.c @@ -93,8 +93,8 @@ static int vprbrd_probe(struct usb_interface *interface, version >> 8, version & 0xff, vb->usb_dev->bus->busnum, vb->usb_dev->devnum); - ret = mfd_add_devices(&interface->dev, -1, vprbrd_devs, - ARRAY_SIZE(vprbrd_devs), NULL, 0, NULL); + ret = mfd_add_hotplug_devices(&interface->dev, vprbrd_devs, + ARRAY_SIZE(vprbrd_devs)); if (ret != 0) { dev_err(&interface->dev, "Failed to add mfd devices to core."); goto error; |