From: Arnd Bergmann <arnd@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"William Breathitt Gray" <william.gray@linaro.org>,
"Pandith N" <pandith.n@intel.com>,
"Yinbo Zhu" <zhuyinbo@loongson.cn>,
"Niklas Schnelle" <schnelle@linux.ibm.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Davide Ciminaghi" <ciminaghi@gnudd.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] gpio: delay: add OF_GPIO dependency
Date: Mon, 5 Jun 2023 13:01:56 +0200 [thread overview]
Message-ID: <20230605110200.938902-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
The new driver fails to build when OF_GPIO is disabled:
drivers/gpio/gpio-delay.c: In function 'gpio_delay_of_xlate':
drivers/gpio/gpio-delay.c:79:39: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells'
Fixes: cf5dec80c4e23 ("gpio: Add gpio delay driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/gpio/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index a1dac1345f60f..006abaedcae82 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1735,6 +1735,7 @@ config GPIO_AGGREGATOR
config GPIO_DELAY
tristate "GPIO delay"
+ depends on OF_GPIO
help
Say yes here to enable the GPIO delay, which provides a way to
configure platform specific delays for GPIO ramp-up or ramp-down
--
2.39.2
next reply other threads:[~2023-06-05 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 11:01 Arnd Bergmann [this message]
2023-06-05 14:31 ` [PATCH] gpio: delay: add OF_GPIO dependency Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230605110200.938902-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=alexander.stein@ew.tq-group.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=ciminaghi@gnudd.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=pandith.n@intel.com \
--cc=schnelle@linux.ibm.com \
--cc=william.gray@linaro.org \
--cc=zhuyinbo@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox