Skip to content

Commit 9f41ebf

Browse files
arndbgregkh
authored andcommitted
usb: musb: don't mark of_dev_auxdata as initdata
The probe function is not __init since it can be called for deferred probing or when unbinding/rebinding the device, and therefore it must not reference objects in __initdata, as pointed out by this link time warning: WARNING: drivers/usb/musb/da8xx.o(.text+0x9d4): Section mismatch in reference from the function da8xx_probe() to the (unknown reference) .init.data:(unknown) This removes the annotation. Reported-by: Olof's autobuilder <[email protected]> Fixes: d6299b6 ("usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 942a487 commit 9f41ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/da8xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static const struct musb_hdrc_config da8xx_config = {
513513
.multipoint = 1,
514514
};
515515

516-
static struct of_dev_auxdata da8xx_auxdata_lookup[] __initdata = {
516+
static struct of_dev_auxdata da8xx_auxdata_lookup[] = {
517517
OF_DEV_AUXDATA("ti,da830-cppi41", 0x01e01000, "cppi41-dmaengine",
518518
NULL),
519519
{}

0 commit comments

Comments
 (0)