Skip to content

Commit

Permalink
Fix section mismatch in spi-pl022.c
Browse files Browse the repository at this point in the history
WARNING: drivers/spi/built-in.o(.devinit.text+0xdb8): Section mismatch in reference from the function pl022_probe() to the function .init.text:pl022_dma_probe()
The function __devinit pl022_probe() references
a function __init pl022_dma_probe().
If pl022_dma_probe is only used by pl022_probe then
annotate pl022_dma_probe with a matching annotation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Russell King authored and Grant Likely committed Feb 13, 2012
1 parent d65b4e9 commit a5ab629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ static int configure_dma(struct pl022 *pl022)
return -ENOMEM;
}

static int __init pl022_dma_probe(struct pl022 *pl022)
static int __devinit pl022_dma_probe(struct pl022 *pl022)
{
dma_cap_mask_t mask;

Expand Down

0 comments on commit a5ab629

Please sign in to comment.