summaryrefslogtreecommitdiff
path: root/target/linux/generic
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-12-21 13:47:14 +0000
committerJohn Crispin <john@openwrt.org>2012-12-21 13:47:14 +0000
commit123343d424846e9a5aad0dfaf6acac7a89d31d0c (patch)
treebd0e009a980cb72dc24d1b622f4b666a220694af /target/linux/generic
parent4cca5cd4fd63081559a19c36c1f32be410df754b (diff)
downloadmtk-20170518-123343d424846e9a5aad0dfaf6acac7a89d31d0c.zip
mtk-20170518-123343d424846e9a5aad0dfaf6acac7a89d31d0c.tar.gz
mtk-20170518-123343d424846e9a5aad0dfaf6acac7a89d31d0c.tar.bz2
make to rtl8366_smi of binding use gpio_is_valid
SVN-Revision: 34816
Diffstat (limited to 'target/linux/generic')
-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 570d12a..804e827 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;
}