History

ARM: omap1: move omap15xx local bus handling to usb.c

Commit 38225f2ef2f4 ("ARM/omap1: switch to use dma_direct_set_offset for lbus DMA offsets") removed a lot of mach/memory.h, but left the USB offset handling split into arch/arm/mach-omap1/usb.c and drivers/usb/host/ohci-omap.c. This can cause a randconfig build warning that now fails the build with -Werror: arch/arm/mach-omap1/usb.c:561:30: error: 'omap_1510_usb_ohci_nb' defined but not used [-Werror=unused-variable] 561 | static struct notifier_block omap_1510_usb_ohci_nb = { | ^~~~~~~~~~~~~~~~~~~~~ Move it all into the platform file to get rid of the final location that relies on mach/memory.h.

Arnd Bergmann committed 5 years ago

Commit 94ad8aa1 parent 6147eb54 files · +86 −116Browse files

Showing the changes to include/linux/platform_data (1 of 4 files). Show all

Unified · Split

include/linux/platform_data/usb-omap1.h+2−0
@@ -48,6 +48,8 @@ struct omap_usb_config { · 47 unmodified lines
48 u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup);48 u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup);
49 49
50 int (*ocpi_enable)(void);50 int (*ocpi_enable)(void);
51
52 void (*lb_reset)(void);
51};53};
52 54
53#endif /* __LINUX_USB_OMAP1_H */55#endif /* __LINUX_USB_OMAP1_H */