Commit 4ccdb4c8 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Linus Torvalds

spi: correct name for spi_txx9

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: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fc3ba952
...@@ -1108,7 +1108,7 @@ static void __init txx9_spi_init(unsigned long base, int irq) ...@@ -1108,7 +1108,7 @@ static void __init txx9_spi_init(unsigned long base, int irq)
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
platform_device_register_simple("txx9spi", 0, platform_device_register_simple("spi_txx9", 0,
res, ARRAY_SIZE(res)); res, ARRAY_SIZE(res));
} }
......
...@@ -450,11 +450,10 @@ static int __exit txx9spi_remove(struct platform_device *dev) ...@@ -450,11 +450,10 @@ static int __exit txx9spi_remove(struct platform_device *dev)
return 0; return 0;
} }
MODULE_ALIAS("txx9spi"); /* for platform bus hotplug */
static struct platform_driver txx9spi_driver = { static struct platform_driver txx9spi_driver = {
.remove = __exit_p(txx9spi_remove), .remove = __exit_p(txx9spi_remove),
.driver = { .driver = {
.name = "txx9spi", .name = "spi_txx9",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment