diff options
author | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> | 2016-06-22 21:22:20 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-30 06:54:23 +0200 |
commit | b5406176989da601736db862643d3d7ee8335815 (patch) | |
tree | 75edfe31ba45aa3dfaa22321865bb3f018ed2fd6 /drivers/media/rc/ir-rx51.c | |
parent | ir-rx51: use PWM framework instead of OMAP dmtimer (diff) | |
download | linux-b5406176989da601736db862643d3d7ee8335815.tar.xz linux-b5406176989da601736db862643d3d7ee8335815.zip |
ir-rx51: add DT support to driver
With the upcoming removal of legacy boot, lets add support to one of the
last N900 drivers remaining without it. As the driver still uses omap
dmtimer, add auxdata as well.
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/media/rc/ir-rx51.c')
-rw-r--r-- | drivers/media/rc/ir-rx51.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c index 5096ef3108d9..1cbb43d0a350 100644 --- a/drivers/media/rc/ir-rx51.c +++ b/drivers/media/rc/ir-rx51.c @@ -21,6 +21,7 @@ #include <linux/sched.h> #include <linux/wait.h> #include <linux/pwm.h> +#include <linux/of.h> #include <media/lirc.h> #include <media/lirc_dev.h> @@ -478,6 +479,14 @@ static int lirc_rx51_remove(struct platform_device *dev) return lirc_unregister_driver(lirc_rx51_driver.minor); } +static const struct of_device_id lirc_rx51_match[] = { + { + .compatible = "nokia,n900-ir", + }, + {}, +}; +MODULE_DEVICE_TABLE(of, lirc_rx51_match); + struct platform_driver lirc_rx51_platform_driver = { .probe = lirc_rx51_probe, .remove = lirc_rx51_remove, @@ -485,7 +494,7 @@ struct platform_driver lirc_rx51_platform_driver = { .resume = lirc_rx51_resume, .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, + .of_match_table = of_match_ptr(lirc_rx51_match), }, }; module_platform_driver(lirc_rx51_platform_driver); |