OSDN Git Service

phy: cpcap-usb: Remove some useless code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 7 May 2020 20:31:27 +0000 (22:31 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 13 May 2020 02:57:35 +0000 (08:27 +0530)
Axe a clk that is unused in the driver.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20200507203127.202197-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/motorola/phy-cpcap-usb.c

index 12e71a3..089db0d 100644 (file)
@@ -122,7 +122,6 @@ enum cpcap_gpio_mode {
 struct cpcap_phy_ddata {
        struct regmap *reg;
        struct device *dev;
-       struct clk *refclk;
        struct usb_phy phy;
        struct delayed_work detect_work;
        struct pinctrl *pins;
@@ -707,7 +706,6 @@ static int cpcap_usb_phy_remove(struct platform_device *pdev)
 
        usb_remove_phy(&ddata->phy);
        cancel_delayed_work_sync(&ddata->detect_work);
-       clk_unprepare(ddata->refclk);
        regulator_disable(ddata->vusb);
 
        return 0;