From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: netdev@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
linux-gpio@vger.kernel.org,
Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH v2 04/11] net: phy: Allow compile test of GPIO consumers if !GPIOLIB
Date: Sun, 2 Aug 2015 11:09:50 +0200 [thread overview]
Message-ID: <1438506590-31630-1-git-send-email-geert@linux-m68k.org> (raw)
In-Reply-To: <1438506475-31012-1-git-send-email-geert@linux-m68k.org>
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
v2:
- Add Acked-by.
---
drivers/net/phy/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index 8ef81914422049ff..b98b4a2b8922a912 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -142,7 +142,8 @@ config MDIO_BITBANG
config MDIO_GPIO
tristate "Support for GPIO lib-based bitbanged MDIO buses"
- depends on MDIO_BITBANG && GPIOLIB
+ depends on MDIO_BITBANG
+ depends on GPIOLIB || COMPILE_TEST
---help---
Supports GPIO lib-based MDIO busses.
--
1.9.1
next prev parent reply other threads:[~2015-08-02 9:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-02 9:07 [PATCH v2 00/11] gpio: Allow compile test of GPIO consumers if !GPIOLIB Geert Uytterhoeven
2015-08-02 9:08 ` [PATCH v2 01/11] tpm: " Geert Uytterhoeven
2015-08-02 9:09 ` [PATCH v2 02/11] input: " Geert Uytterhoeven
2015-08-04 18:44 ` Dmitry Torokhov
2015-08-02 9:09 ` [PATCH v2 03/11] misc: ti-st: " Geert Uytterhoeven
2015-08-02 9:09 ` Geert Uytterhoeven [this message]
2015-08-02 9:09 ` [PATCH v2 05/11] power: " Geert Uytterhoeven
2015-08-05 3:49 ` Sebastian Reichel
2015-08-02 9:09 ` [PATCH v2 06/11] staging: android: " Geert Uytterhoeven
2015-08-02 9:09 ` [PATCH v2 07/11] staging: fbtft: " Geert Uytterhoeven
2015-08-02 9:09 ` [PATCH v2 08/11] serial: " Geert Uytterhoeven
2015-08-02 9:09 ` [PATCH v2 09/11] fbdev: " Geert Uytterhoeven
2015-08-11 7:22 ` Tomi Valkeinen
2015-08-11 7:28 ` Geert Uytterhoeven
2015-08-02 9:09 ` [PATCH v2 11/11] net: rfkill: " Geert Uytterhoeven
2015-08-13 8:49 ` Johannes Berg
2015-08-02 9:09 ` [PATCH v2 10/11] w1: " Geert Uytterhoeven
2015-08-02 9:25 ` Evgeniy Polyakov
2015-08-02 12:11 ` Geert Uytterhoeven
2015-08-02 13:55 ` Evgeniy Polyakov
2015-08-10 16:01 ` [PATCH v2 00/11] gpio: " Johannes Berg
2015-08-10 16:23 ` Geert Uytterhoeven
2015-08-10 16:29 ` Peter Huewe
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=1438506590-31630-1-git-send-email-geert@linux-m68k.org \
--to=geert@linux-m68k.org \
--cc=f.fainelli@gmail.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).