mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
input: misc: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
1d05726c31
commit
776bd315a7
@ -153,7 +153,6 @@ static int pm80x_onkey_remove(struct platform_device *pdev)
|
||||
static struct platform_driver pm80x_onkey_driver = {
|
||||
.driver = {
|
||||
.name = "88pm80x-onkey",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &pm80x_onkey_pm_ops,
|
||||
},
|
||||
.probe = pm80x_onkey_probe,
|
||||
|
@ -138,7 +138,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_onkey_pm_ops, pm860x_onkey_suspend, pm860x_onkey
|
||||
static struct platform_driver pm860x_onkey_driver = {
|
||||
.driver = {
|
||||
.name = "88pm860x-onkey",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &pm860x_onkey_pm_ops,
|
||||
},
|
||||
.probe = pm860x_onkey_probe,
|
||||
|
@ -123,7 +123,6 @@ static const struct of_device_id ab8500_ponkey_match[] = {
|
||||
static struct platform_driver ab8500_ponkey_driver = {
|
||||
.driver = {
|
||||
.name = "ab8500-poweron-key",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(ab8500_ponkey_match),
|
||||
},
|
||||
.probe = ab8500_ponkey_probe,
|
||||
|
@ -225,7 +225,6 @@ static struct platform_driver arizona_haptics_driver = {
|
||||
.remove = arizona_haptics_remove,
|
||||
.driver = {
|
||||
.name = "arizona-haptics",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(arizona_haptics_driver);
|
||||
|
@ -256,7 +256,6 @@ static struct platform_driver bfin_rotary_device_driver = {
|
||||
.remove = bfin_rotary_remove,
|
||||
.driver = {
|
||||
.name = "bfin-rotary",
|
||||
.owner = THIS_MODULE,
|
||||
#ifdef CONFIG_PM
|
||||
.pm = &bfin_rotary_pm_ops,
|
||||
#endif
|
||||
|
@ -157,7 +157,6 @@ static struct platform_driver cobalt_buttons_driver = {
|
||||
.remove = cobalt_buttons_remove,
|
||||
.driver = {
|
||||
.name = "Cobalt buttons",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(cobalt_buttons_driver);
|
||||
|
@ -149,7 +149,6 @@ static struct platform_driver da9052_onkey_driver = {
|
||||
.remove = da9052_onkey_remove,
|
||||
.driver = {
|
||||
.name = "da9052-onkey",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(da9052_onkey_driver);
|
||||
|
@ -157,7 +157,6 @@ static struct platform_driver da9055_onkey_driver = {
|
||||
.remove = da9055_onkey_remove,
|
||||
.driver = {
|
||||
.name = "da9055-onkey",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -263,7 +263,6 @@ static struct platform_driver dm355evm_keys_driver = {
|
||||
.probe = dm355evm_keys_probe,
|
||||
.remove = dm355evm_keys_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "dm355evm_keys",
|
||||
},
|
||||
};
|
||||
|
@ -112,7 +112,6 @@ MODULE_DEVICE_TABLE(of, gpio_beeper_of_match);
|
||||
static struct platform_driver gpio_beeper_platform_driver = {
|
||||
.driver = {
|
||||
.name = BEEPER_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(gpio_beeper_of_match),
|
||||
},
|
||||
.probe = gpio_beeper_probe,
|
||||
|
@ -199,7 +199,6 @@ static struct platform_driver gpio_tilt_polled_driver = {
|
||||
.remove = gpio_tilt_polled_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -272,7 +272,6 @@ static int ideapad_remove(struct platform_device *pdev)
|
||||
static struct platform_driver slidebar_drv = {
|
||||
.driver = {
|
||||
.name = "ideapad_slidebar",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.remove = ideapad_remove,
|
||||
};
|
||||
|
@ -168,7 +168,6 @@ static void ixp4xx_spkr_shutdown(struct platform_device *dev)
|
||||
static struct platform_driver ixp4xx_spkr_platform_driver = {
|
||||
.driver = {
|
||||
.name = "ixp4xx-beeper",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = ixp4xx_spkr_probe,
|
||||
.remove = ixp4xx_spkr_remove,
|
||||
|
@ -100,7 +100,6 @@ static void m68kspkr_shutdown(struct platform_device *dev)
|
||||
static struct platform_driver m68kspkr_platform_driver = {
|
||||
.driver = {
|
||||
.name = "m68kspkr",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = m68kspkr_probe,
|
||||
.remove = m68kspkr_remove,
|
||||
|
@ -344,7 +344,6 @@ static SIMPLE_DEV_PM_OPS(max77693_haptic_pm_ops,
|
||||
static struct platform_driver max77693_haptic_driver = {
|
||||
.driver = {
|
||||
.name = "max77693-haptic",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &max77693_haptic_pm_ops,
|
||||
},
|
||||
.probe = max77693_haptic_probe,
|
||||
|
@ -168,7 +168,6 @@ static SIMPLE_DEV_PM_OPS(max8925_onkey_pm_ops, max8925_onkey_suspend, max8925_on
|
||||
static struct platform_driver max8925_onkey_driver = {
|
||||
.driver = {
|
||||
.name = "max8925-onkey",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &max8925_onkey_pm_ops,
|
||||
},
|
||||
.probe = max8925_onkey_probe,
|
||||
|
@ -401,7 +401,6 @@ MODULE_DEVICE_TABLE(i2c, max8997_haptic_id);
|
||||
static struct platform_driver max8997_haptic_driver = {
|
||||
.driver = {
|
||||
.name = "max8997-haptic",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &max8997_haptic_pm_ops,
|
||||
},
|
||||
.probe = max8997_haptic_probe,
|
||||
|
@ -258,7 +258,6 @@ static struct platform_driver mc13783_pwrbutton_driver = {
|
||||
.remove = mc13783_pwrbutton_remove,
|
||||
.driver = {
|
||||
.name = "mc13783-pwrbutton",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -319,7 +319,6 @@ static struct platform_driver palmas_pwron_driver = {
|
||||
.remove = palmas_pwron_remove,
|
||||
.driver = {
|
||||
.name = "palmas_pwrbutton",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(of_palmas_pwr_match),
|
||||
.pm = &palmas_pwron_pm,
|
||||
},
|
||||
|
@ -121,7 +121,6 @@ static struct platform_driver pcap_keys_device_driver = {
|
||||
.remove = pcap_keys_remove,
|
||||
.driver = {
|
||||
.name = "pcap-keys",
|
||||
.owner = THIS_MODULE,
|
||||
}
|
||||
};
|
||||
module_platform_driver(pcap_keys_device_driver);
|
||||
|
@ -125,7 +125,6 @@ static const struct dev_pm_ops pcspkr_pm_ops = {
|
||||
static struct platform_driver pcspkr_platform_driver = {
|
||||
.driver = {
|
||||
.name = "pcspkr",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &pcspkr_pm_ops,
|
||||
},
|
||||
.probe = pcspkr_probe,
|
||||
|
@ -224,7 +224,6 @@ static struct platform_driver pm8xxx_vib_driver = {
|
||||
.probe = pm8xxx_vib_probe,
|
||||
.driver = {
|
||||
.name = "pm8xxx-vib",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &pm8xxx_vib_pm_ops,
|
||||
.of_match_table = pm8xxx_vib_id_table,
|
||||
},
|
||||
|
@ -195,7 +195,6 @@ static struct platform_driver pmic8xxx_pwrkey_driver = {
|
||||
.remove = pmic8xxx_pwrkey_remove,
|
||||
.driver = {
|
||||
.name = "pm8xxx-pwrkey",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &pm8xxx_pwr_key_pm_ops,
|
||||
.of_match_table = pm8xxx_pwr_key_id_table,
|
||||
},
|
||||
|
@ -187,7 +187,6 @@ static struct platform_driver pwm_beeper_driver = {
|
||||
.remove = pwm_beeper_remove,
|
||||
.driver = {
|
||||
.name = "pwm-beeper",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = PWM_BEEPER_PM_OPS,
|
||||
.of_match_table = of_match_ptr(pwm_beeper_match),
|
||||
},
|
||||
|
@ -96,7 +96,6 @@ static struct platform_driver rb532_button_driver = {
|
||||
.remove = rb532_button_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(rb532_button_driver);
|
||||
|
@ -85,7 +85,6 @@ static struct platform_driver retu_pwrbutton_driver = {
|
||||
.remove = retu_pwrbutton_remove,
|
||||
.driver = {
|
||||
.name = "retu-pwrbutton",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(retu_pwrbutton_driver);
|
||||
|
@ -325,7 +325,6 @@ static struct platform_driver rotary_encoder_driver = {
|
||||
.remove = rotary_encoder_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(rotary_encoder_of_match),
|
||||
}
|
||||
};
|
||||
|
@ -157,7 +157,6 @@ static struct platform_driver sgi_buttons_driver = {
|
||||
.remove = sgi_buttons_remove,
|
||||
.driver = {
|
||||
.name = "sgibtns",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(sgi_buttons_driver);
|
||||
|
@ -205,7 +205,6 @@ static struct platform_driver sirfsoc_pwrc_driver = {
|
||||
.remove = sirfsoc_pwrc_remove,
|
||||
.driver = {
|
||||
.name = "sirfsoc-pwrc",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &sirfsoc_pwrc_pm_ops,
|
||||
.of_match_table = sirfsoc_pwrc_of_match,
|
||||
}
|
||||
|
@ -214,7 +214,6 @@ static struct platform_driver soc_button_driver = {
|
||||
.remove = soc_button_remove,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
.acpi_match_table = ACPI_PTR(soc_button_acpi_match),
|
||||
},
|
||||
};
|
||||
|
@ -257,7 +257,6 @@ static const struct of_device_id bbc_beep_match[] = {
|
||||
static struct platform_driver bbc_beep_driver = {
|
||||
.driver = {
|
||||
.name = "bbcbeep",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = bbc_beep_match,
|
||||
},
|
||||
.probe = bbc_beep_probe,
|
||||
@ -337,7 +336,6 @@ static const struct of_device_id grover_beep_match[] = {
|
||||
static struct platform_driver grover_beep_driver = {
|
||||
.driver = {
|
||||
.name = "groverbeep",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = grover_beep_match,
|
||||
},
|
||||
.probe = grover_beep_probe,
|
||||
|
@ -101,7 +101,6 @@ static struct platform_driver twl4030_pwrbutton_driver = {
|
||||
.probe = twl4030_pwrbutton_probe,
|
||||
.driver = {
|
||||
.name = "twl4030_pwrbutton",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(twl4030_pwrbutton_dt_match_table),
|
||||
},
|
||||
};
|
||||
|
@ -253,7 +253,6 @@ static struct platform_driver twl4030_vibra_driver = {
|
||||
.probe = twl4030_vibra_probe,
|
||||
.driver = {
|
||||
.name = "twl4030-vibra",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &twl4030_vibra_pm_ops,
|
||||
},
|
||||
};
|
||||
|
@ -388,7 +388,6 @@ static struct platform_driver twl6040_vibra_driver = {
|
||||
.probe = twl6040_vibra_probe,
|
||||
.driver = {
|
||||
.name = "twl6040-vibra",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &twl6040_vibra_pm_ops,
|
||||
},
|
||||
};
|
||||
|
@ -1347,7 +1347,6 @@ static const struct dev_pm_ops wistron_pm_ops = {
|
||||
static struct platform_driver wistron_driver = {
|
||||
.driver = {
|
||||
.name = "wistron-bios",
|
||||
.owner = THIS_MODULE,
|
||||
#ifdef CONFIG_PM
|
||||
.pm = &wistron_pm_ops,
|
||||
#endif
|
||||
|
@ -138,7 +138,6 @@ static struct platform_driver wm831x_on_driver = {
|
||||
.remove = wm831x_on_remove,
|
||||
.driver = {
|
||||
.name = "wm831x-on",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(wm831x_on_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user