Skip to content

Commit 81f4000

Browse files
committed
linux-yocto-dev: tc9563: add missing include
Correct the TC9563 patch by adding the missing include directive. Otherwise the kernel fails the build with the following errors: ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c: In function 'tc9563_pwrctrl_power_off': ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:419:9: error: implicit declaration of function 'gpiod_set_value' [-Wimplicit-function-declaration] 419 | gpiod_set_value(ctx->reset_gpio, 1); | ^~~~~~~~~~~~~~~ ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c: In function 'tc9563_pwrctrl_probe': ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:27: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'em_pd_get'? [-Wimplicit-function-declaration] 535 | ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); | ^~~~~~~~~~~~~~ | em_pd_get ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:56: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function) 535 | ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); | ^~~~~~~~~~~~~~ ../../../../../work-shared/qcom-armv7a/kernel-source/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:56: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 341f546 commit 81f4000

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes-kernel/linux/linux-yocto-dev/drivers/0008-PCI-pwrctrl-Add-power-control-driver-for-tc9563.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ new file mode 100644
6565
index 00000000000000..547c764a6f405a
6666
--- /dev/null
6767
+++ b/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
68-
@@ -0,0 +1,628 @@
68+
@@ -0,0 +1,629 @@
6969
+// SPDX-License-Identifier: GPL-2.0-only
7070
+/*
7171
+ * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
7272
+ */
7373
+
7474
+#include <linux/delay.h>
7575
+#include <linux/device.h>
76+
+#include <linux/gpio/consumer.h>
7677
+#include <linux/i2c.h>
7778
+#include <linux/mod_devicetable.h>
7879
+#include <linux/module.h>

0 commit comments

Comments
 (0)