summaryrefslogtreecommitdiff
path: root/arch/arm/mach-u300/dummyspichip.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-04-21 19:39:46 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2013-06-17 11:54:29 (GMT)
commit20d4af68306c0e9b61ec158570502d4f89a00014 (patch)
tree9f4379f47d74de2967b3910cad7f5f182409104a /arch/arm/mach-u300/dummyspichip.c
parentcf4af8670b7377a9e9dbb4c5d3622538185ca362 (diff)
downloadlinux-20d4af68306c0e9b61ec158570502d4f89a00014.tar.xz
ARM: u300: probe the U300 dummy-spichip from device tree
This probes the U300 dummy-spichip from the device tree and adds the apropriate node to the tree. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-u300/dummyspichip.c')
-rw-r--r--arch/arm/mach-u300/dummyspichip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-u300/dummyspichip.c b/arch/arm/mach-u300/dummyspichip.c
index 2785cb6..52962bf 100644
--- a/arch/arm/mach-u300/dummyspichip.c
+++ b/arch/arm/mach-u300/dummyspichip.c
@@ -263,10 +263,16 @@ static int pl022_dummy_remove(struct spi_device *spi)
return 0;
}
+static const struct of_device_id pl022_dummy_dt_match[] = {
+ { .compatible = "arm,pl022-dummy" },
+ {},
+};
+
static struct spi_driver pl022_dummy_driver = {
.driver = {
.name = "spi-dummy",
.owner = THIS_MODULE,
+ .of_match_table = pl022_dummy_dt_match,
},
.probe = pl022_dummy_probe,
.remove = pl022_dummy_remove,