From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 4/6] mfd: use mfd_add_hotplug_devices helper Date: Tue, 7 Oct 2014 10:24:24 +0100 Message-ID: <20141007092424.GT25331@lee--X1> References: <1411728933-13351-1-git-send-email-johan@kernel.org> <1411728933-13351-5-git-send-email-johan@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-ie0-f179.google.com ([209.85.223.179]:60604 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbaJGJY3 (ORCPT ); Tue, 7 Oct 2014 05:24:29 -0400 Received: by mail-ie0-f179.google.com with SMTP id ar1so5044746iec.10 for ; Tue, 07 Oct 2014 02:24:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1411728933-13351-5-git-send-email-johan@kernel.org> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Johan Hovold Cc: Samuel Ortiz , Jiri Kosina , linux-input@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org On Fri, 26 Sep 2014, Johan Hovold wrote: > Use mfd_add_hotplug_devices helper to register the subdevices. >=20 > Signed-off-by: Johan Hovold > --- > drivers/mfd/rtsx_usb.c | 4 ++-- > drivers/mfd/viperboard.c | 5 ++--- > 2 files changed, 4 insertions(+), 5 deletions(-) Applied for v3.19. > diff --git a/drivers/mfd/rtsx_usb.c b/drivers/mfd/rtsx_usb.c > index 78073e4b87e4..5b17339fce7c 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 *i= ntf, > /* initialize USB SG transfer timer */ > setup_timer(&ucr->sg_timer, rtsx_usb_sg_timed_out, (unsigned long) = ucr); > =20 > - ret =3D mfd_add_devices(&intf->dev, PLATFORM_DEVID_AUTO, rtsx_usb_c= ells, > - ARRAY_SIZE(rtsx_usb_cells), NULL, 0, NULL); > + ret =3D mfd_add_hotplug_devices(&intf->dev, rtsx_usb_cells, > + ARRAY_SIZE(rtsx_usb_cells)); > if (ret) > goto out_init_fail; > =20 > diff --git a/drivers/mfd/viperboard.c b/drivers/mfd/viperboard.c > index 3c2b8f9e3c84..be450ebcb52d 100644 > --- a/drivers/mfd/viperboard.c > +++ b/drivers/mfd/viperboard.c > @@ -93,9 +93,8 @@ static int vprbrd_probe(struct usb_interface *inter= face, > version >> 8, version & 0xff, > vb->usb_dev->bus->busnum, vb->usb_dev->devnum); > =20 > - ret =3D mfd_add_devices(&interface->dev, PLATFORM_DEVID_AUTO, > - vprbrd_devs, ARRAY_SIZE(vprbrd_devs), NULL, 0, > - NULL); > + ret =3D mfd_add_hotplug_devices(&interface->dev, vprbrd_devs, > + ARRAY_SIZE(vprbrd_devs)); > if (ret !=3D 0) { > dev_err(&interface->dev, "Failed to add mfd devices to core."); > goto error; --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html