hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/phy/ti/phy-dm816x-usb.c
....@@ -82,17 +82,16 @@
8282 {
8383 struct dm816x_usb_phy *phy = phy_get_drvdata(x);
8484 unsigned int val;
85
- int error;
8685
8786 if (clk_get_rate(phy->refclk) != 24000000)
8887 dev_warn(phy->dev, "nonstandard phy refclk\n");
8988
9089 /* Set PLL ref clock and put phys to sleep */
91
- error = regmap_update_bits(phy->syscon, phy->usb_ctrl,
92
- DM816X_USB_CTRL_PHYCLKSRC |
93
- DM816X_USB_CTRL_PHYSLEEP1 |
94
- DM816X_USB_CTRL_PHYSLEEP0,
95
- 0);
90
+ regmap_update_bits(phy->syscon, phy->usb_ctrl,
91
+ DM816X_USB_CTRL_PHYCLKSRC |
92
+ DM816X_USB_CTRL_PHYSLEEP1 |
93
+ DM816X_USB_CTRL_PHYSLEEP0,
94
+ 0);
9695 regmap_read(phy->syscon, phy->usb_ctrl, &val);
9796 if ((val & 3) != 0)
9897 dev_info(phy->dev,
....@@ -189,7 +188,6 @@
189188 struct phy_provider *phy_provider;
190189 struct usb_otg *otg;
191190 const struct of_device_id *of_id;
192
- const struct usb_phy_data *phy_data;
193191 int error;
194192
195193 of_id = of_match_device(of_match_ptr(dm816x_usb_phy_id_table),
....@@ -219,8 +217,6 @@
219217 phy->usbphy_ctrl = (res->start & 0xff) + 4;
220218 if (phy->usbphy_ctrl == 0x2c)
221219 phy->instance = 1;
222
-
223
- phy_data = of_id->data;
224220
225221 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
226222 if (!otg)