summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-08-02 09:54:13 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-08-02 09:54:13 +0000
commit614ca3cc9e73024b8eba81a414b34c700d8d42ca (patch)
treea5d453f3db0348f9f4ee83bc03e7911443bb04c2
parent9f011e72256481ce1ce03dd77ac441649e978f26 (diff)
downloadmtk-20170518-614ca3cc9e73024b8eba81a414b34c700d8d42ca.zip
mtk-20170518-614ca3cc9e73024b8eba81a414b34c700d8d42ca.tar.gz
mtk-20170518-614ca3cc9e73024b8eba81a414b34c700d8d42ca.tar.bz2
generic: rtl8366_smi: use __rtl8366_smi_cleanup instead of gpio_free calls
SVN-Revision: 32942
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c3
1 files changed, 1 insertions, 2 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 ca8f788..1288db1 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -1340,8 +1340,7 @@ void rtl8366_smi_cleanup(struct rtl8366_smi *smi)
{
rtl8366_debugfs_remove(smi);
rtl8366_smi_mii_cleanup(smi);
- gpio_free(smi->gpio_sck);
- gpio_free(smi->gpio_sda);
+ __rtl8366_smi_cleanup(smi);
}
EXPORT_SYMBOL_GPL(rtl8366_smi_cleanup);