pinctrl: imx6sl: introduce MODULE_DEVICE_TABLE for module autoloading
authorKiran Padwal <kiran.padwal@smartplayin.com>
Mon, 11 Aug 2014 14:54:57 +0000 (20:24 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Aug 2014 05:16:07 +0000 (07:16 +0200)
Enable autoloading of pinctrl-imx6sl module when a corresponing DT entry is present.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx6sl.c

index fa76d6c..e0924bd 100644 (file)
@@ -370,6 +370,7 @@ static const struct of_device_id imx6sl_pinctrl_of_match[] = {
        { .compatible = "fsl,imx6sl-iomuxc", },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx6sl_pinctrl_of_match);
 
 static int imx6sl_pinctrl_probe(struct platform_device *pdev)
 {