pinctrl: u300 device tree support
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Apr 2013 09:06:39 +0000 (11:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 31 May 2013 09:24:50 +0000 (11:24 +0200)
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>
drivers/pinctrl/pinctrl-u300.c

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