Skip to contentSkip to conversation

usb: musb-new: sunxi: remove unused define

PATCH Applied Sam Edwards 2 participants 2 messages Jun 8, 2023 – Jun 9, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: musb-new: sunxi: remove unused define

This is a remnant from when the USB controller driver managed the reset signal itself. A patch from the very end of 2018 changed this driver to delegate reset (and clock) management to the proper control unit driver, but left this unused define behind.

---
 drivers/usb/musb-new/sunxi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/musb-new/sunxi.c +0 -2
index 2b954601a0..85d815ad75 100644
@@ -81,8 +81,6 @@
  * From usbc/usbc.c
  ******************************************************************************/
 
-#define OFF_SUN6I_AHB_RESET0	0x2c0
-
 struct sunxi_musb_config {
 	struct musb_hdrc_config *config;
 	bool has_sram;
Signature · 1 line
2.39.2
Applied
#1 lore raw
Quoted 16 lines · Sam Edwards

This is a remnant from when the USB controller driver managed the reset signal itself. A patch from the very end of 2018 changed this driver to delegate reset (and clock) management to the proper control unit driver, but left this unused define behind.

---
  drivers/usb/musb-new/sunxi.c | 2 --
  1 file changed, 2 deletions(-)
drivers/usb/musb-new/sunxi.c +0 -0
index 2b954601a0..85d815ad75 100644

drivers/usb/musb-new/sunxi.c line 86

Quoted 8 lines
drivers/usb/musb-new/sunxi.c +0 -2
@@ -81,8 +81,6 @@
   * From usbc/usbc.c
   ******************************************************************************/
 
-#define OFF_SUN6I_AHB_RESET0	0x2c0
-
  struct sunxi_musb_config {
  	struct musb_hdrc_config *config;
  	bool has_sram;

Applied to usb/master, thanks