aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-12-21 13:47:14 +0000
committerJohn Crispin <blogic@openwrt.org>2012-12-21 13:47:14 +0000
commit29d0dc4ad352b9c8971e0df2714a71033e49c14b (patch)
tree6f74ec23b954db7a36ede753cb4f6e835c25fd31 /target/linux/generic/files/drivers
parent1a59d7923796736e8b0820eed7d7fc0e13372b9a (diff)
downloadupstream-29d0dc4ad352b9c8971e0df2714a71033e49c14b.tar.gz
upstream-29d0dc4ad352b9c8971e0df2714a71033e49c14b.tar.bz2
upstream-29d0dc4ad352b9c8971e0df2714a71033e49c14b.zip
[kernel] make to rtl8366_smi of binding use gpio_is_valid
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index 570d12adb3..804e827dbd 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -1379,7 +1379,7 @@ int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
int sck = of_get_named_gpio(pdev->dev.of_node, "gpio-sck", 0);
int sda = of_get_named_gpio(pdev->dev.of_node, "gpio-sda", 0);
- if (!sck || !sda) {
+ if (!gpio_is_valid(sck) || !gpio_is_valid(sda)) {
dev_err(&pdev->dev, "gpios missing in devictree\n");
return -EINVAL;
}