Drivers: sbus: 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: "David S. Miller" <davem@davemloft.net> Cc: Peter Senna Tschudin <peter.senna@gmail.com> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -159,7 +159,7 @@ static const struct file_operations flash_fops = {
|
||||
|
||||
static struct miscdevice flash_dev = { FLASH_MINOR, "flash", &flash_fops };
|
||||
|
||||
static int __devinit flash_probe(struct platform_device *op)
|
||||
static int flash_probe(struct platform_device *op)
|
||||
{
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct device_node *parent;
|
||||
@@ -190,7 +190,7 @@ static int __devinit flash_probe(struct platform_device *op)
|
||||
return misc_register(&flash_dev);
|
||||
}
|
||||
|
||||
static int __devexit flash_remove(struct platform_device *op)
|
||||
static int flash_remove(struct platform_device *op)
|
||||
{
|
||||
misc_deregister(&flash_dev);
|
||||
|
||||
@@ -212,7 +212,7 @@ static struct platform_driver flash_driver = {
|
||||
.of_match_table = flash_match,
|
||||
},
|
||||
.probe = flash_probe,
|
||||
.remove = __devexit_p(flash_remove),
|
||||
.remove = flash_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(flash_driver);
|
||||
|
Reference in New Issue
Block a user