提交 6dfb6715 编写于 作者: G Greg Kroah-Hartman

Drivers: vlynq: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, and __devexit
from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Florian Fainelli <florian@openwrt.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b92c914d
...@@ -772,7 +772,7 @@ static int vlynq_remove(struct platform_device *pdev) ...@@ -772,7 +772,7 @@ static int vlynq_remove(struct platform_device *pdev)
static struct platform_driver vlynq_platform_driver = { static struct platform_driver vlynq_platform_driver = {
.driver.name = "vlynq", .driver.name = "vlynq",
.probe = vlynq_probe, .probe = vlynq_probe,
.remove = __devexit_p(vlynq_remove), .remove = vlynq_remove,
}; };
struct bus_type vlynq_bus_type = { struct bus_type vlynq_bus_type = {
...@@ -783,7 +783,7 @@ struct bus_type vlynq_bus_type = { ...@@ -783,7 +783,7 @@ struct bus_type vlynq_bus_type = {
}; };
EXPORT_SYMBOL(vlynq_bus_type); EXPORT_SYMBOL(vlynq_bus_type);
static int __devinit vlynq_init(void) static int vlynq_init(void)
{ {
int res = 0; int res = 0;
...@@ -803,7 +803,7 @@ static int __devinit vlynq_init(void) ...@@ -803,7 +803,7 @@ static int __devinit vlynq_init(void)
return res; return res;
} }
static void __devexit vlynq_exit(void) static void vlynq_exit(void)
{ {
platform_driver_unregister(&vlynq_platform_driver); platform_driver_unregister(&vlynq_platform_driver);
bus_unregister(&vlynq_bus_type); bus_unregister(&vlynq_bus_type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册