diff mbox

pinctrl: digicolor: add missing platform_set_drvdata() call

Message ID 1464155932-25344-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac
Headers show

Commit Message

Masahiro Yamada May 25, 2016, 5:58 a.m. UTC
gc_pinctrl_remove() calls platform_get_drvdata(), but I see neither
platform_set_drvdata() nor dev_set_drvdata() anywhere in this driver.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/pinctrl/pinctrl-digicolor.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Linus Walleij May 31, 2016, 8:31 a.m. UTC | #1
On Wed, May 25, 2016 at 7:58 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> gc_pinctrl_remove() calls platform_get_drvdata(), but I see neither

> platform_set_drvdata() nor dev_set_drvdata() anywhere in this driver.

>

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Patch applied with Baruch's ACK.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctrl/pinctrl-digicolor.c
index 30ee564..c8073d4 100644
--- a/drivers/pinctrl/pinctrl-digicolor.c
+++ b/drivers/pinctrl/pinctrl-digicolor.c
@@ -332,6 +332,8 @@  static int dc_pinctrl_probe(struct platform_device *pdev)
 		return PTR_ERR(pmap->pctl);
 	}
 
+	platform_set_drvdata(pdev, pmap);
+
 	return dc_gpiochip_add(pmap, pdev->dev.of_node);
 }