diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 06:59:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-31 20:53:50 -0400 |
commit | d4f09e28d7bc5c1adde8229b1e89401f23fb44f9 (patch) | |
tree | 839932c47eb570a24b6758a4829b81839310395b /drivers/usb/host/ehci-omap.c | |
parent | 4fae6f0fa86f92e6bc7429371b1e177ad0aaac66 (diff) |
USB: host: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
-rw-r--r-- | drivers/usb/host/ehci-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 4384d07115d1..78b01fa475bb 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c | |||
@@ -100,7 +100,7 @@ static const struct ehci_driver_overrides ehci_omap_overrides __initdata = { | |||
100 | static int ehci_hcd_omap_probe(struct platform_device *pdev) | 100 | static int ehci_hcd_omap_probe(struct platform_device *pdev) |
101 | { | 101 | { |
102 | struct device *dev = &pdev->dev; | 102 | struct device *dev = &pdev->dev; |
103 | struct usbhs_omap_platform_data *pdata = dev->platform_data; | 103 | struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); |
104 | struct resource *res; | 104 | struct resource *res; |
105 | struct usb_hcd *hcd; | 105 | struct usb_hcd *hcd; |
106 | void __iomem *regs; | 106 | void __iomem *regs; |
@@ -119,7 +119,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev) | |||
119 | 119 | ||
120 | /* For DT boot, get platform data from parent. i.e. usbhshost */ | 120 | /* For DT boot, get platform data from parent. i.e. usbhshost */ |
121 | if (dev->of_node) { | 121 | if (dev->of_node) { |
122 | pdata = dev->parent->platform_data; | 122 | pdata = dev_get_platdata(dev->parent); |
123 | dev->platform_data = pdata; | 123 | dev->platform_data = pdata; |
124 | } | 124 | } |
125 | 125 | ||