Drivers: platform: x86: 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, __devinitdata, __devinitconst, 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: Joey Lee <jlee@novell.com> Cc: Matthew Garrett <mjg@redhat.com> Cc: Peter Feuerer <peter@piie.net> Cc: Corentin Chary <corentin.chary@gmail.com> Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Cc: Robert Gerlach <khnz@gmx.de> Cc: Ike Panhc <ike.pan@canonical.com> Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -713,15 +713,15 @@ static struct attribute_group compal_attribute_group = {
|
||||
.attrs = compal_attributes
|
||||
};
|
||||
|
||||
static int __devinit compal_probe(struct platform_device *);
|
||||
static int __devexit compal_remove(struct platform_device *);
|
||||
static int compal_probe(struct platform_device *);
|
||||
static int compal_remove(struct platform_device *);
|
||||
static struct platform_driver compal_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = compal_probe,
|
||||
.remove = __devexit_p(compal_remove)
|
||||
.remove = compal_remove,
|
||||
};
|
||||
|
||||
static enum power_supply_property compal_bat_properties[] = {
|
||||
@@ -1015,7 +1015,7 @@ err_backlight:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devinit compal_probe(struct platform_device *pdev)
|
||||
static int compal_probe(struct platform_device *pdev)
|
||||
{
|
||||
int err;
|
||||
struct compal_data *data;
|
||||
@@ -1067,7 +1067,7 @@ static void __exit compal_cleanup(void)
|
||||
pr_info("Driver unloaded\n");
|
||||
}
|
||||
|
||||
static int __devexit compal_remove(struct platform_device *pdev)
|
||||
static int compal_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct compal_data *data;
|
||||
|
||||
|
Reference in New Issue
Block a user