Re: [PATCH 06/35] USB: host: use dev_get_platdata()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Jul 30, 2013 at 05:00:18PM +0900, Jingoo Han wrote:
> diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
> index 8747fa6..d42ec85 100644
> --- a/drivers/usb/host/ohci-omap.c
> +++ b/drivers/usb/host/ohci-omap.c
> @@ -191,7 +191,8 @@ static void start_hnp(struct ohci_hcd *ohci)
>  static int ohci_omap_init(struct usb_hcd *hcd)
>  {
>  	struct ohci_hcd		*ohci = hcd_to_ohci(hcd);
> -	struct omap_usb_config	*config = hcd->self.controller->platform_data;
> +	struct omap_usb_config	*config =
> +				dev_get_platdata(hcd->self.controller);

no need to break the line here.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux