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:
@@ -278,12 +278,12 @@ static void oaktrail_backlight_exit(void)
|
||||
backlight_device_unregister(oaktrail_bl_device);
|
||||
}
|
||||
|
||||
static int __devinit oaktrail_probe(struct platform_device *pdev)
|
||||
static int oaktrail_probe(struct platform_device *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit oaktrail_remove(struct platform_device *pdev)
|
||||
static int oaktrail_remove(struct platform_device *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -294,7 +294,7 @@ static struct platform_driver oaktrail_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = oaktrail_probe,
|
||||
.remove = __devexit_p(oaktrail_remove)
|
||||
.remove = oaktrail_remove,
|
||||
};
|
||||
|
||||
static int dmi_check_cb(const struct dmi_system_id *id)
|
||||
|
Reference in New Issue
Block a user