aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-orion.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 19:59:40 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:53:50 -0700
commitd4f09e28d7bc5c1adde8229b1e89401f23fb44f9 (patch)
tree839932c47eb570a24b6758a4829b81839310395b /drivers/usb/host/ehci-orion.c
parentUSB: handle LPM errors during device suspend correctly (diff)
downloadlinux-dev-d4f09e28d7bc5c1adde8229b1e89401f23fb44f9.tar.xz
linux-dev-d4f09e28d7bc5c1adde8229b1e89401f23fb44f9.zip
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-orion.c')
-rw-r--r--drivers/usb/host/ehci-orion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index 1a450aa13ebf..d1dfb9db5b42 100644
--- a/drivers/usb/host/ehci-orion.c
+++ b/drivers/usb/host/ehci-orion.c
@@ -139,7 +139,7 @@ ehci_orion_conf_mbus_windows(struct usb_hcd *hcd,
static int ehci_orion_drv_probe(struct platform_device *pdev)
{
- struct orion_ehci_data *pd = pdev->dev.platform_data;
+ struct orion_ehci_data *pd = dev_get_platdata(&pdev->dev);
const struct mbus_dram_target_info *dram;
struct resource *res;
struct usb_hcd *hcd;