Re: [PATCH] ARM: omap1: move omap15xx local bus handling to usb.c

From
Alan Stern <stern@rowland.harvard.edu>
Date
2021-09-27 15:07:03
Also in
linux-omap, linux-usb, lkml
Reply to
Arnd Bergmann, 2021-09-27
On Mon, Sep 27, 2021 at 04:40:50PM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

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.

Acked-by: Felipe Balbi <redacted>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
For the ohci-omap.c portion:

Acked-by: Alan Stern <stern@rowland.harvard.edu>


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (4 messages) 4 messages, 4 authors, last reply 2021-10-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help