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 <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> --- This patch is on top of "SPI driver hotplug/coldplug fixes" for 2.6.23-rc3-git by David Brownell. diff -urNp linux.old/arch/mips/tx4938/toshiba_rbtx4938/setup.c linux/arch/mips/tx4938/toshiba_rbtx4938/setup.c --- linux.old/arch/mips/tx4938/toshiba_rbtx4938/setup.c 2007-08-23 11:44:48.000000000 +0900 +++ linux/arch/mips/tx4938/toshiba_rbtx4938/setup.c 2007-08-23 11:50:17.000000000 +0900 @@ -1121,7 +1121,7 @@ static void __init txx9_spi_init(unsigne .flags = IORESOURCE_IRQ, }, }; - platform_device_register_simple("txx9spi", 0, + platform_device_register_simple("spi_txx9", 0, res, ARRAY_SIZE(res)); } diff -urNp linux.old/drivers/spi/spi_txx9.c linux/drivers/spi/spi_txx9.c --- linux.old/drivers/spi/spi_txx9.c 2007-08-23 11:48:47.000000000 +0900 +++ linux/drivers/spi/spi_txx9.c 2007-08-23 11:49:50.000000000 +0900 @@ -450,11 +450,10 @@ static int __exit txx9spi_remove(struct 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, }, }; ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general