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.
Showing the changes to include/linux/platform_data (1 of 4 files). Show all
Unified · Split
| @@ -48,6 +48,8 @@ struct omap_usb_config { · 47 unmodified lines | ||
| 48 | 48 | u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup); |
| 49 | 49 | |
| 50 | 50 | int (*ocpi_enable)(void); |
| 51 | + | |
| 52 | + void (*lb_reset)(void); | |
| 51 | 53 | }; |
| 52 | 54 | |
| 53 | 55 | #endif /* __LINUX_USB_OMAP1_H */ |