linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mmc: s3cmci: include GPIO descriptor consumer header
@ 2020-10-26 15:38 Krzysztof Kozlowski
  2020-10-26 15:38 ` [PATCH 2/3] mmc: s3cmci: enable compile testing Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-26 15:38 UTC (permalink / raw)
  To: Ulf Hansson, Ben Dooks, Maxime Ripard, Chen-Yu Tsai,
	Adrian Hunter, linux-mmc, linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski

The driver uses GPIO Descriptor Consumer Interface so include proper
header to fix compile test errors like:

    drivers/mmc/host/s3cmci.c: In function ‘s3cmci_check_sdio_irq’:
    drivers/mmc/host/s3cmci.c:304:7: error:
        implicit declaration of function ‘gpiod_get_value’; did you mean ‘gpio_get_value’? [-Werror=implicit-function-declaration]

    drivers/mmc/host/s3cmci.c: In function ‘s3cmci_probe_pdata’:
    drivers/mmc/host/s3cmci.c:1451:19: error:
        implicit declaration of function ‘devm_gpiod_get_index’ [-Werror=implicit-function-declaration]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/mmc/host/s3cmci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index 643d54eceef6..a33a7823c265 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -17,7 +17,7 @@
 #include <linux/cpufreq.h>
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/io.h>
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-27 13:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-26 15:38 [PATCH 1/3] mmc: s3cmci: include GPIO descriptor consumer header Krzysztof Kozlowski
2020-10-26 15:38 ` [PATCH 2/3] mmc: s3cmci: enable compile testing Krzysztof Kozlowski
2020-10-27 13:41   ` Ulf Hansson
2020-10-26 15:38 ` [PATCH 3/3] mmc: sunxi: drop of_match_ptr from of_device_id table Krzysztof Kozlowski
2020-10-26 17:20   ` Maxime Ripard
2020-10-27 13:41   ` Ulf Hansson
2020-10-27 13:41 ` [PATCH 1/3] mmc: s3cmci: include GPIO descriptor consumer header Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).