Skip to content

Commit

Permalink
spi_s3c24xx: fix section warning
Browse files Browse the repository at this point in the history
Fix the section mismatch warning generated by the incorrect naming of
s3c24xx_spidrv which should be s3c24xx_spi_driver:

WARNING: drivers/spi/spi_s3c24xx.o(.data+0x4):
  Section mismatch in reference from the variable s3c24xx_spidrv
  to the (unknown reference) .exit.text:(unknown)

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ben Dooks authored and torvalds committed Sep 13, 2008
1 parent 3aa04f1 commit 42cde43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static int s3c24xx_spi_resume(struct platform_device *pdev)
#endif

MODULE_ALIAS("platform:s3c2410-spi");
static struct platform_driver s3c24xx_spidrv = {
static struct platform_driver s3c24xx_spi_driver = {
.remove = __exit_p(s3c24xx_spi_remove),
.suspend = s3c24xx_spi_suspend,
.resume = s3c24xx_spi_resume,
Expand All @@ -442,12 +442,12 @@ static struct platform_driver s3c24xx_spidrv = {

static int __init s3c24xx_spi_init(void)
{
return platform_driver_probe(&s3c24xx_spidrv, s3c24xx_spi_probe);
return platform_driver_probe(&s3c24xx_spi_driver, s3c24xx_spi_probe);
}

static void __exit s3c24xx_spi_exit(void)
{
platform_driver_unregister(&s3c24xx_spidrv);
platform_driver_unregister(&s3c24xx_spi_driver);
}

module_init(s3c24xx_spi_init);
Expand Down

0 comments on commit 42cde43

Please sign in to comment.