diff mbox series

pinctrl: bcm: ns: Use uintptr_t for data

Message ID 20181010191753.11849-1-linus.walleij@linaro.org
State New
Headers show
Series pinctrl: bcm: ns: Use uintptr_t for data | expand

Commit Message

Linus Walleij Oct. 10, 2018, 7:17 p.m. UTC
Fix up a compiler error on 64bit architectures where pointers
and integers differ in size.

Cc: Rafał Miłecki <rafal@milecki.pl>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/pinctrl/bcm/pinctrl-ns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/drivers/pinctrl/bcm/pinctrl-ns.c b/drivers/pinctrl/bcm/pinctrl-ns.c
index aedbb2813c50..c92da7caa610 100644
--- a/drivers/pinctrl/bcm/pinctrl-ns.c
+++ b/drivers/pinctrl/bcm/pinctrl-ns.c
@@ -20,7 +20,7 @@ 
 
 struct ns_pinctrl {
 	struct device *dev;
-	unsigned int chipset_flag;
+	uintptr_t chipset_flag;
 	struct pinctrl_dev *pctldev;
 	void __iomem *base;