.. | .. |
---|
36 | 36 | |
---|
37 | 37 | static const struct of_device_id musb_dsps_of_match[]; |
---|
38 | 38 | |
---|
39 | | -/** |
---|
| 39 | +/* |
---|
40 | 40 | * DSPS musb wrapper register offset. |
---|
41 | 41 | * FIXME: This should be expanded to have all the wrapper registers from TI DSPS |
---|
42 | 42 | * musb ips. |
---|
.. | .. |
---|
96 | 96 | u32 rx_mode; |
---|
97 | 97 | }; |
---|
98 | 98 | |
---|
99 | | -/** |
---|
| 99 | +/* |
---|
100 | 100 | * DSPS glue structure. |
---|
101 | 101 | */ |
---|
102 | 102 | struct dsps_glue { |
---|
.. | .. |
---|
162 | 162 | |
---|
163 | 163 | #define USBSS_IRQ_PD_COMP (1 << 2) |
---|
164 | 164 | |
---|
165 | | -/** |
---|
| 165 | +/* |
---|
166 | 166 | * dsps_musb_enable - enable interrupts |
---|
167 | 167 | */ |
---|
168 | 168 | static void dsps_musb_enable(struct musb *musb) |
---|
169 | 169 | { |
---|
170 | 170 | struct device *dev = musb->controller; |
---|
171 | | - struct platform_device *pdev = to_platform_device(dev->parent); |
---|
172 | | - struct dsps_glue *glue = platform_get_drvdata(pdev); |
---|
| 171 | + struct dsps_glue *glue = dev_get_drvdata(dev->parent); |
---|
173 | 172 | const struct dsps_musb_wrapper *wrp = glue->wrp; |
---|
174 | 173 | void __iomem *reg_base = musb->ctrl_base; |
---|
175 | 174 | u32 epmask, coremask; |
---|
.. | .. |
---|
189 | 188 | dsps_mod_timer(glue, -1); |
---|
190 | 189 | } |
---|
191 | 190 | |
---|
192 | | -/** |
---|
| 191 | +/* |
---|
193 | 192 | * dsps_musb_disable - disable HDRC and flush interrupts |
---|
194 | 193 | */ |
---|
195 | 194 | static void dsps_musb_disable(struct musb *musb) |
---|
196 | 195 | { |
---|
197 | 196 | struct device *dev = musb->controller; |
---|
198 | | - struct platform_device *pdev = to_platform_device(dev->parent); |
---|
199 | | - struct dsps_glue *glue = platform_get_drvdata(pdev); |
---|
| 197 | + struct dsps_glue *glue = dev_get_drvdata(dev->parent); |
---|
200 | 198 | const struct dsps_musb_wrapper *wrp = glue->wrp; |
---|
201 | 199 | void __iomem *reg_base = musb->ctrl_base; |
---|
202 | 200 | |
---|
.. | .. |
---|
234 | 232 | dsps_mod_timer_optional(glue); |
---|
235 | 233 | break; |
---|
236 | 234 | } |
---|
237 | | - /* fall through */ |
---|
| 235 | + fallthrough; |
---|
238 | 236 | |
---|
239 | 237 | case OTG_STATE_A_WAIT_BCON: |
---|
240 | 238 | /* keep VBUS on for host-only mode */ |
---|
.. | .. |
---|
244 | 242 | } |
---|
245 | 243 | musb_writeb(musb->mregs, MUSB_DEVCTL, 0); |
---|
246 | 244 | skip_session = 1; |
---|
247 | | - /* fall through */ |
---|
| 245 | + fallthrough; |
---|
248 | 246 | |
---|
249 | 247 | case OTG_STATE_A_IDLE: |
---|
250 | 248 | case OTG_STATE_B_IDLE: |
---|
.. | .. |
---|
413 | 411 | char buf[128]; |
---|
414 | 412 | |
---|
415 | 413 | sprintf(buf, "%s.dsps", dev_name(musb->controller)); |
---|
416 | | - root = debugfs_create_dir(buf, NULL); |
---|
| 414 | + root = debugfs_create_dir(buf, usb_debug_root); |
---|
417 | 415 | glue->dbgfs_root = root; |
---|
418 | 416 | |
---|
419 | 417 | glue->regset.regs = dsps_musb_regs; |
---|
.. | .. |
---|
797 | 795 | case USB_SPEED_SUPER: |
---|
798 | 796 | dev_warn(dev, "ignore incorrect maximum_speed " |
---|
799 | 797 | "(super-speed) setting in dts"); |
---|
800 | | - /* fall through */ |
---|
| 798 | + fallthrough; |
---|
801 | 799 | default: |
---|
802 | 800 | config->maximum_speed = USB_SPEED_HIGH; |
---|
803 | 801 | } |
---|