Skip to content

Commit cda5f23

Browse files
shawn1221martinkpetersen
authored andcommitted
scsi: ufs: rockchip: Fix compile error without CONFIG_GPIOLIB
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>
1 parent b0ee72d commit cda5f23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/ufs/host/ufs-rockchip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <linux/clk.h>
99
#include <linux/gpio.h>
10+
#include <linux/gpio/consumer.h>
1011
#include <linux/mfd/syscon.h>
1112
#include <linux/of.h>
1213
#include <linux/platform_device.h>

0 commit comments

Comments
 (0)