summaryrefslogtreecommitdiffstats
path: root/drivers/misc/arm-charlcd.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-03-28 16:20:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-03 19:26:25 -0400
commit4f0638100fe305837d583aed75c51c53047a2524 (patch)
tree39795a86bdb3fbc31e4e59ef05dcfc93170d6f41 /drivers/misc/arm-charlcd.c
parenta48839509ad4be29e64e245e752c529c125ede49 (diff)
downloadlinux-4f0638100fe305837d583aed75c51c53047a2524.tar.gz
linux-4f0638100fe305837d583aed75c51c53047a2524.tar.bz2
linux-4f0638100fe305837d583aed75c51c53047a2524.zip
misc: arm-charlcd: add DT probe support
Add the DT match table to enable DT based probe matching. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/arm-charlcd.c')
-rw-r--r--drivers/misc/arm-charlcd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/arm-charlcd.c b/drivers/misc/arm-charlcd.c
index b7ebf8021d99..c72e96b523ed 100644
--- a/drivers/misc/arm-charlcd.c
+++ b/drivers/misc/arm-charlcd.c
@@ -11,6 +11,7 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
+#include <linux/of.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/io.h>
@@ -366,11 +367,17 @@ static const struct dev_pm_ops charlcd_pm_ops = {
.resume = charlcd_resume,
};
+static const struct of_device_id charlcd_match[] = {
+ { .compatible = "arm,versatile-lcd", },
+ {}
+};
+
static struct platform_driver charlcd_driver = {
.driver = {
.name = DRIVERNAME,
.owner = THIS_MODULE,
.pm = &charlcd_pm_ops,
+ .of_match_table = of_match_ptr(charlcd_match),
},
.remove = __exit_p(charlcd_remove),
};