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>
This commit is contained in:
Linus Walleij 2013-04-08 11:06:39 +02:00
Родитель 5a5056cccf
Коммит 21a035db89
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1105,10 +1105,17 @@ static int u300_pmx_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id u300_pinctrl_match[] = {
{ .compatible = "stericsson,pinctrl-u300" },
{},
};
static struct platform_driver u300_pmx_driver = { static struct platform_driver u300_pmx_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = u300_pinctrl_match,
}, },
.probe = u300_pmx_probe, .probe = u300_pmx_probe,
.remove = u300_pmx_remove, .remove = u300_pmx_remove,