generic: rtl8366_smi: use __rtl8366_smi_cleanup instead of gpio_free calls
authorGabor Juhos <juhosg@openwrt.org>
Thu, 2 Aug 2012 09:54:13 +0000 (09:54 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 2 Aug 2012 09:54:13 +0000 (09:54 +0000)
SVN-Revision: 32942

target/linux/generic/files/drivers/net/phy/rtl8366_smi.c

index ca8f788..1288db1 100644 (file)
@@ -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);