Controlling PWMEN/EXTLP (named as "has_otg") was supported in v3.2, but the last user (kzm9g) was removed by the commit 30f8925a57d8ad49 ("ARM: shmobile: Remove legacy board code for KZM-A9-GT"). So, this patch remove it.
Unified · Split
| @@ -95,10 +95,6 @@ void usbhs_sys_host_ctrl(struct usbhs_priv *priv, int enable) · 94 unmodified lines | ||
| 95 | 95 | { |
| 96 | 96 | u16 mask = DCFM | DRPD | DPRPU | HSE | USBE; |
| 97 | 97 | u16 val = DCFM | DRPD | HSE | USBE; |
| 98 | − int has_otg = usbhs_get_dparam(priv, has_otg); | |
| 99 | − | |
| 100 | − if (has_otg) | |
| 101 | − usbhs_bset(priv, DVSTCTR, (EXTLP | PWEN), (EXTLP | PWEN)); | |
| 102 | 98 | |
| 103 | 99 | /* |
| 104 | 100 | * if enable |
| @@ -186,7 +186,6 @@ struct renesas_usbhs_driver_param { · 185 unmodified lines | ||
| 186 | 186 | /* |
| 187 | 187 | * option: |
| 188 | 188 | */ |
| 189 | − u32 has_otg:1; /* for controlling PWEN/EXTLP */ | |
| 190 | 189 | u32 has_usb_dmac:1; /* for USB-DMAC */ |
| 191 | 190 | u32 runtime_pwctrl:1; |
| 192 | 191 | u32 has_cnen:1; |