diff options
author | Robby Cai <R63905@freescale.com> | 2013-06-09 01:55:23 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2013-06-09 22:27:20 +0800 |
commit | bf85713a5f8f2dd654abc57f5aa12d45d73109d6 (patch) | |
tree | 6b3192e57daedfeef1e9156caf0ae7386f743ee1 /drivers | |
parent | f20e7b2c3325d33fb4660e8bc6996f6112b9c766 (diff) |
ENGR00265742-3 pxp_v4l2: update the driver with dts
use of_match_table to do the match
Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/mxc/output/mxc_pxp_v4l2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/output/mxc_pxp_v4l2.c b/drivers/media/video/mxc/output/mxc_pxp_v4l2.c index 2ab689490705..29360bfe4f7e 100644 --- a/drivers/media/video/mxc/output/mxc_pxp_v4l2.c +++ b/drivers/media/video/mxc/output/mxc_pxp_v4l2.c @@ -1151,6 +1151,12 @@ static const struct video_device pxp_template = { .ioctl_ops = &pxp_ioctl_ops, }; +static const struct of_device_id imx_pxpv4l2_dt_ids[] = { + { .compatible = "fsl,imx6dl-pxp-v4l2", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, imx_pxpv4l2_dt_ids); + static int pxp_probe(struct platform_device *pdev) { struct pxps *pxp; @@ -1222,6 +1228,7 @@ static int __devexit pxp_remove(struct platform_device *pdev) static struct platform_driver pxp_driver = { .driver = { .name = PXP_DRIVER_NAME, + .of_match_table = of_match_ptr(imx_pxpv4l2_dt_ids), }, .probe = pxp_probe, .remove = __exit_p(pxp_remove), |