.. | .. |
---|
82 | 82 | { |
---|
83 | 83 | struct dm816x_usb_phy *phy = phy_get_drvdata(x); |
---|
84 | 84 | unsigned int val; |
---|
85 | | - int error; |
---|
86 | 85 | |
---|
87 | 86 | if (clk_get_rate(phy->refclk) != 24000000) |
---|
88 | 87 | dev_warn(phy->dev, "nonstandard phy refclk\n"); |
---|
89 | 88 | |
---|
90 | 89 | /* 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); |
---|
96 | 95 | regmap_read(phy->syscon, phy->usb_ctrl, &val); |
---|
97 | 96 | if ((val & 3) != 0) |
---|
98 | 97 | dev_info(phy->dev, |
---|
.. | .. |
---|
189 | 188 | struct phy_provider *phy_provider; |
---|
190 | 189 | struct usb_otg *otg; |
---|
191 | 190 | const struct of_device_id *of_id; |
---|
192 | | - const struct usb_phy_data *phy_data; |
---|
193 | 191 | int error; |
---|
194 | 192 | |
---|
195 | 193 | of_id = of_match_device(of_match_ptr(dm816x_usb_phy_id_table), |
---|
.. | .. |
---|
219 | 217 | phy->usbphy_ctrl = (res->start & 0xff) + 4; |
---|
220 | 218 | if (phy->usbphy_ctrl == 0x2c) |
---|
221 | 219 | phy->instance = 1; |
---|
222 | | - |
---|
223 | | - phy_data = of_id->data; |
---|
224 | 220 | |
---|
225 | 221 | otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); |
---|
226 | 222 | if (!otg) |
---|