forked from immortalwrt/immortalwrt
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath79: phy: remove named gpio exports
The only real user of this patch was removed and migrated to the upstream friendly regulator. Remove this hack. Signed-off-by: Rosen Penev <[email protected]> Link: openwrt/openwrt#17356 Signed-off-by: Hauke Mehrtens <[email protected]>
- Loading branch information
Showing
1 changed file
with
2 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ Signed-off-by: John Crispin <[email protected]> | |
obj-$(CONFIG_PHY_LPC18XX_USB_OTG) += phy-lpc18xx-usb-otg.o | ||
--- /dev/null | ||
+++ b/drivers/phy/phy-ar7100-usb.c | ||
@@ -0,0 +1,127 @@ | ||
@@ -0,0 +1,117 @@ | ||
+/* | ||
+ * Copyright (C) 2018 John Crispin <[email protected]> | ||
+ * | ||
|
@@ -144,16 +144,6 @@ Signed-off-by: John Crispin <[email protected]> | |
+ if (IS_ERR(priv->phy)) | ||
+ return dev_err_probe(&pdev->dev, PTR_ERR(priv->phy), "failed to create PHY"); | ||
+ | ||
+ priv->gpio = of_get_named_gpio(pdev->dev.of_node, "gpios", 0); | ||
+ if (gpio_is_valid(priv->gpio)) { | ||
+ int ret = devm_gpio_request(&pdev->dev, priv->gpio, dev_name(&pdev->dev)); | ||
+ if (ret) | ||
+ return dev_err_probe(&pdev->dev, ret, "failed to request gpio"); | ||
+ | ||
+ gpio_export_with_name(gpio_to_desc(priv->gpio), 0, dev_name(&pdev->dev)); | ||
+ gpio_set_value(priv->gpio, 1); | ||
+ } | ||
+ | ||
+ phy_set_drvdata(priv->phy, priv); | ||
+ | ||
+ phy_provider = devm_of_phy_provider_register(&pdev->dev, of_phy_simple_xlate); | ||
|
@@ -181,7 +171,7 @@ Signed-off-by: John Crispin <[email protected]> | |
+MODULE_LICENSE("GPL"); | ||
--- /dev/null | ||
+++ b/drivers/phy/phy-ar7200-usb.c | ||
@@ -0,0 +1,120 @@ | ||
@@ -0,0 +1,111 @@ | ||
+/* | ||
+ * Copyright (C) 2015 Alban Bedel <[email protected]> | ||
+ * | ||
|
@@ -268,15 +258,6 @@ Signed-off-by: John Crispin <[email protected]> | |
+ if (IS_ERR(priv->phy)) | ||
+ return dev_err_probe(&pdev->dev, PTR_ERR(priv->phy), "failed to create PHY"); | ||
+ | ||
+ priv->gpio = of_get_named_gpio(pdev->dev.of_node, "gpios", 0); | ||
+ if (gpio_is_valid(priv->gpio)) { | ||
+ int ret = devm_gpio_request(&pdev->dev, priv->gpio, dev_name(&pdev->dev)); | ||
+ if (ret) | ||
+ return dev_err_probe(&pdev->dev, ret, "failed to request gpio"); | ||
+ gpio_export_with_name(gpio_to_desc(priv->gpio), 0, dev_name(&pdev->dev)); | ||
+ gpio_set_value(priv->gpio, 1); | ||
+ } | ||
+ | ||
+ phy_set_drvdata(priv->phy, priv); | ||
+ | ||
+ phy_provider = devm_of_phy_provider_register(&pdev->dev, of_phy_simple_xlate); | ||
|