diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-04-08 05:06:39 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-05-31 05:24:50 -0400 |
commit | 21a035db897975a5195dfb1525433637f30aeebf (patch) | |
tree | 3bf6d84f0e6b6510720218f2e7db5e79b612d979 /drivers/pinctrl/pinctrl-u300.c | |
parent | 5a5056cccfb0479f52a0464a6b371b441c84aa0c (diff) |
pinctrl: u300 device tree support
This adds a simple device tree compat string for the U300 pin
controller. The base address is already passed properly as
a resource and everything works fine.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-u300.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-u300.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c index 6a3a7503e6a0..06bfa09bb15c 100644 --- a/drivers/pinctrl/pinctrl-u300.c +++ b/drivers/pinctrl/pinctrl-u300.c | |||
@@ -1105,10 +1105,17 @@ static int u300_pmx_remove(struct platform_device *pdev) | |||
1105 | return 0; | 1105 | return 0; |
1106 | } | 1106 | } |
1107 | 1107 | ||
1108 | static const struct of_device_id u300_pinctrl_match[] = { | ||
1109 | { .compatible = "stericsson,pinctrl-u300" }, | ||
1110 | {}, | ||
1111 | }; | ||
1112 | |||
1113 | |||
1108 | static struct platform_driver u300_pmx_driver = { | 1114 | static struct platform_driver u300_pmx_driver = { |
1109 | .driver = { | 1115 | .driver = { |
1110 | .name = DRIVER_NAME, | 1116 | .name = DRIVER_NAME, |
1111 | .owner = THIS_MODULE, | 1117 | .owner = THIS_MODULE, |
1118 | .of_match_table = u300_pinctrl_match, | ||
1112 | }, | 1119 | }, |
1113 | .probe = u300_pmx_probe, | 1120 | .probe = u300_pmx_probe, |
1114 | .remove = u300_pmx_remove, | 1121 | .remove = u300_pmx_remove, |