From: Atsushi Nemoto <anemo-7JcRY8pycbNHfZP73Gtkiw@public.gmane.org>
To: david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org
Subject: [PATCH] spi: Correct name for spi_txx9
Date: Thu, 23 Aug 2007 12:35:34 +0900 (JST) [thread overview]
Message-ID: <20070823.123534.78704256.nemoto@toshiba-tops.co.jp> (raw)
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-7JcRY8pycbNHfZP73Gtkiw@public.gmane.org>
Acked-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
---
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/
reply other threads:[~2007-08-23 3:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070823.123534.78704256.nemoto@toshiba-tops.co.jp \
--to=anemo-7jcry8pycbnhfzp73gtkiw@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
--cc=ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).