pinctrl: uniphier: set pinctrl_desc owner in common probe function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 31 May 2016 08:05:10 +0000 (17:05 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 May 2016 10:38:30 +0000 (12:38 +0200)
The owner of the struct pinctrl_desc matches that of platform_driver.
Set it in the common probe function.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c

index 5d08de0b13f59d03891801e8193022648f3e62e0..ab89efb6ee06b7de9cb2d0bb1030973a073d7aca 100644 (file)
@@ -670,6 +670,7 @@ int uniphier_pinctrl_probe(struct platform_device *pdev,
        desc->pctlops = &uniphier_pctlops;
        desc->pmxops = &uniphier_pmxops;
        desc->confops = &uniphier_confops;
+       desc->owner = dev->driver->owner;
 
        priv->pctldev = devm_pinctrl_register(dev, desc, priv);
        if (IS_ERR(priv->pctldev)) {
index ad193c7a577d72c7471e2b8c850ea58a1f98fa65..5353ce4f611a458fd61ca83e42ad4447e2955f4f 100644 (file)
@@ -861,7 +861,6 @@ static struct pinctrl_desc uniphier_ld4_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_ld4_pins,
        .npins = ARRAY_SIZE(uniphier_ld4_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_ld4_pinctrl_probe(struct platform_device *pdev)
index 0782a6da1681c41c06e9f39bcc3dcad3f36ea2d7..c405960bd9b0acd2f344fe1072797b6effdaaca5 100644 (file)
@@ -1249,7 +1249,6 @@ static struct pinctrl_desc uniphier_ld6b_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_ld6b_pins,
        .npins = ARRAY_SIZE(uniphier_ld6b_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_ld6b_pinctrl_probe(struct platform_device *pdev)
index 2d4530789dd9e93aa69835d18890c1376549a794..54b08d51c501b1b9349c9d816d55a75b6b2a87c6 100644 (file)
@@ -1535,7 +1535,6 @@ static struct pinctrl_desc uniphier_pro4_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_pro4_pins,
        .npins = ARRAY_SIZE(uniphier_pro4_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_pro4_pinctrl_probe(struct platform_device *pdev)
index 8452dad6c769794df8eabf96088a54553577ab75..19b15db80e68dd7a6c12cbb5ff2beafa2f48d72b 100644 (file)
@@ -1326,7 +1326,6 @@ static struct pinctrl_desc uniphier_pro5_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_pro5_pins,
        .npins = ARRAY_SIZE(uniphier_pro5_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_pro5_pinctrl_probe(struct platform_device *pdev)
index 89d3fdbbded4bb1af6f3fd8ba5b4cc7ffedb11fe..762de0e472a871405c4c40b7235398275eead1ee 100644 (file)
@@ -1244,7 +1244,6 @@ static struct pinctrl_desc uniphier_pxs2_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_pxs2_pins,
        .npins = ARRAY_SIZE(uniphier_pxs2_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_pxs2_pinctrl_probe(struct platform_device *pdev)
index ab635f21829a803d80de1e3b2cc2761c431ec7d7..9fe87628b9089844132ad7ff9e55e959cf23e9cb 100644 (file)
@@ -769,7 +769,6 @@ static struct pinctrl_desc uniphier_sld8_pinctrl_desc = {
        .name = DRIVER_NAME,
        .pins = uniphier_sld8_pins,
        .npins = ARRAY_SIZE(uniphier_sld8_pins),
-       .owner = THIS_MODULE,
 };
 
 static int uniphier_sld8_pinctrl_probe(struct platform_device *pdev)