mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 02:46:43 +07:00
pinctrl: lynxpoint: Move ->remove closer to ->probe()
Consolidate ->remove and ->probe() callbacks for better maintenance. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
21a06495d0
commit
d0f2df4070
@ -416,6 +416,12 @@ static int lp_gpio_probe(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lp_gpio_remove(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
pm_runtime_disable(&pdev->dev);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int lp_gpio_runtime_suspend(struct device *dev)
|
static int lp_gpio_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@ -455,12 +461,6 @@ static const struct acpi_device_id lynxpoint_gpio_acpi_match[] = {
|
|||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, lynxpoint_gpio_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, lynxpoint_gpio_acpi_match);
|
||||||
|
|
||||||
static int lp_gpio_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
pm_runtime_disable(&pdev->dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct platform_driver lp_gpio_driver = {
|
static struct platform_driver lp_gpio_driver = {
|
||||||
.probe = lp_gpio_probe,
|
.probe = lp_gpio_probe,
|
||||||
.remove = lp_gpio_remove,
|
.remove = lp_gpio_remove,
|
||||||
|
Loading…
Reference in New Issue
Block a user