mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
misc: arm-charlcd: add DT probe support
Add the DT match table to enable DT based probe matching. Signed-off-by: Rob Herring <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a48839509a
commit
4f0638100f
1 changed files with 7 additions and 0 deletions
|
|
@ -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),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue