diff options
Diffstat (limited to 'drivers/video/imx-ipu-v3/imx-pd.c')
-rw-r--r-- | drivers/video/imx-ipu-v3/imx-pd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/imx-ipu-v3/imx-pd.c b/drivers/video/imx-ipu-v3/imx-pd.c index 92fa4ed4b4..d8b5f90a6c 100644 --- a/drivers/video/imx-ipu-v3/imx-pd.c +++ b/drivers/video/imx-ipu-v3/imx-pd.c @@ -22,7 +22,7 @@ #define IMX_PD_OUTPUT_PORT 1 struct imx_pd { - struct device_d *dev; + struct device *dev; struct display_timings *timings; u32 bus_format; struct vpl vpl; @@ -61,9 +61,9 @@ static int imx_pd_ioctl(struct vpl *vpl, unsigned int port, return 0; } -static int imx_pd_probe(struct device_d *dev) +static int imx_pd_probe(struct device *dev) { - struct device_node *node = dev->device_node; + struct device_node *node = dev->of_node; struct imx_pd *imx_pd; struct device_node *port; const char *fmt; @@ -108,8 +108,9 @@ static struct of_device_id imx_pd_dt_ids[] = { { .compatible = "fsl,imx-parallel-display", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx_pd_dt_ids); -static struct driver_d imx_pd_driver = { +static struct driver imx_pd_driver = { .probe = imx_pd_probe, .of_compatible = imx_pd_dt_ids, .name = "imx-parallel-display", |