summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/imx/imx-usb-misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/imx/imx-usb-misc.c b/drivers/usb/imx/imx-usb-misc.c
index dc0de9e..ef3892c 100644
--- a/drivers/usb/imx/imx-usb-misc.c
+++ b/drivers/usb/imx/imx-usb-misc.c
@@ -640,7 +640,7 @@ static int imx_usbmisc_probe(struct device_d *dev)
{
struct resource *iores;
struct imx_usb_misc_data *devtype;
- struct imx_usb_misc_priv *usbmisc = dev->priv;
+ struct imx_usb_misc_priv *usbmisc;
int ret;
ret = dev_get_drvdata(dev, (const void **)&devtype);
@@ -655,6 +655,8 @@ static int imx_usbmisc_probe(struct device_d *dev)
usbmisc->base = IOMEM(iores->start);
usbmisc->data = devtype;
+ dev->priv = usbmisc;
+
return 0;
}