mmc: meson-gx-mmc: Explicitly include pinctr/consumer.h
authorThierry Reding <treding@nvidia.com>
Mon, 5 Feb 2018 12:47:50 +0000 (13:47 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Feb 2018 17:41:54 +0000 (09:41 -0800)
The Meson GX MMC driver fails to build after commit 23c35f48f5fb
("pinctrl: remove include file from <linux/device.h>") because it relies
on the pinctrl/consumer.h being pulled in by the device.h header
implicitly.

Include the header explicitly to avoid the build failure.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/meson-gx-mmc.c

index 32a6a228cd120ac1e9beb79b7c018977d9fb6422..22438ebfe4e627a9edf789ba5b146158b3a6622e 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/regulator/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/bitfield.h>
+#include <linux/pinctrl/consumer.h>
 
 #define DRIVER_NAME "meson-gx-mmc"