]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: ufs: rockchip: Fix compile error without CONFIG_GPIOLIB
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 13 Nov 2025 05:18:11 +0000 (13:18 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 20 Nov 2025 03:34:41 +0000 (22:34 -0500)
drivers/ufs/host/ufs-rockchip.c:168:19: error: implicit declaration of function
'devm_gpiod_get'; did you mean 'em_pd_get'? [-Werror=implicit-function-declaration]

drivers/ufs/host/ufs-rockchip.c:214:2: error: implicit declaration of function
'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'?
[-Werror=implicit-function-declaration]

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511130238.LlA0MKxW-lkp@intel.com/
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/1763011091-243727-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-rockchip.c

index 8cecb28cdce411cef3ccb40487bba7236e55cc08..7fff34513a606eeb48dfc79c23614aba8221028e 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/clk.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/mfd/syscon.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>