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:
@@ -298,7 +298,7 @@ static const struct file_operations debugfs_cfg_fops = {
|
||||
.release = single_release,
|
||||
};
|
||||
|
||||
static int __devinit ideapad_debugfs_init(struct ideapad_private *priv)
|
||||
static int ideapad_debugfs_init(struct ideapad_private *priv)
|
||||
{
|
||||
struct dentry *node;
|
||||
|
||||
@@ -468,8 +468,7 @@ static void ideapad_sync_rfk_state(struct ideapad_private *priv)
|
||||
rfkill_set_hw_state(priv->rfk[i], hw_blocked);
|
||||
}
|
||||
|
||||
static int __devinit ideapad_register_rfkill(struct acpi_device *adevice,
|
||||
int dev)
|
||||
static int ideapad_register_rfkill(struct acpi_device *adevice, int dev)
|
||||
{
|
||||
struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
|
||||
int ret;
|
||||
@@ -519,7 +518,7 @@ static void ideapad_unregister_rfkill(struct acpi_device *adevice, int dev)
|
||||
/*
|
||||
* Platform device
|
||||
*/
|
||||
static int __devinit ideapad_platform_init(struct ideapad_private *priv)
|
||||
static int ideapad_platform_init(struct ideapad_private *priv)
|
||||
{
|
||||
int result;
|
||||
|
||||
@@ -569,7 +568,7 @@ static const struct key_entry ideapad_keymap[] = {
|
||||
{ KE_END, 0 },
|
||||
};
|
||||
|
||||
static int __devinit ideapad_input_init(struct ideapad_private *priv)
|
||||
static int ideapad_input_init(struct ideapad_private *priv)
|
||||
{
|
||||
struct input_dev *inputdev;
|
||||
int error;
|
||||
@@ -776,7 +775,7 @@ static void ideapad_sync_touchpad_state(struct acpi_device *adevice)
|
||||
}
|
||||
}
|
||||
|
||||
static int __devinit ideapad_acpi_add(struct acpi_device *adevice)
|
||||
static int ideapad_acpi_add(struct acpi_device *adevice)
|
||||
{
|
||||
int ret, i;
|
||||
int cfg;
|
||||
@@ -835,7 +834,7 @@ platform_failed:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit ideapad_acpi_remove(struct acpi_device *adevice, int type)
|
||||
static int ideapad_acpi_remove(struct acpi_device *adevice, int type)
|
||||
{
|
||||
struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user