Skip to content

Commit

Permalink
spi: correct name for spi_txx9
Browse files Browse the repository at this point in the history
Correct the name of the spi_txx9 driver (and their in-tree user)
instead of MODULE_ALIAS workaround.  This would be preferable in the
long term.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Atsushi Nemoto authored and Linus Torvalds committed Aug 31, 2007
1 parent fc3ba95 commit 4ccdb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/mips/tx4938/toshiba_rbtx4938/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ static void __init txx9_spi_init(unsigned long base, int irq)
.flags = IORESOURCE_IRQ,
},
};
platform_device_register_simple("txx9spi", 0,
platform_device_register_simple("spi_txx9", 0,
res, ARRAY_SIZE(res));
}

Expand Down
3 changes: 1 addition & 2 deletions drivers/spi/spi_txx9.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,10 @@ static int __exit txx9spi_remove(struct platform_device *dev)
return 0;
}

MODULE_ALIAS("txx9spi"); /* for platform bus hotplug */
static struct platform_driver txx9spi_driver = {
.remove = __exit_p(txx9spi_remove),
.driver = {
.name = "txx9spi",
.name = "spi_txx9",
.owner = THIS_MODULE,
},
};
Expand Down

0 comments on commit 4ccdb4c

Please sign in to comment.