Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: elkhartlake: reuse pm_ops from Intel Tangier driver

Reuse tng_gpio_pm_ops from Intel Tangier driver instead of calling
them through a local copy.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Link: https://lore.kernel.org/r/20231113131600.10828-3-raag.jadav@intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Raag Jadav and committed by
Andy Shevchenko
49d478b4 fc84abc4

+1 -13
+1 -13
drivers/gpio/gpio-elkhartlake.c
··· 55 55 return 0; 56 56 } 57 57 58 - static int ehl_gpio_suspend(struct device *dev) 59 - { 60 - return tng_gpio_suspend(dev); 61 - } 62 - 63 - static int ehl_gpio_resume(struct device *dev) 64 - { 65 - return tng_gpio_resume(dev); 66 - } 67 - 68 - static DEFINE_SIMPLE_DEV_PM_OPS(ehl_gpio_pm_ops, ehl_gpio_suspend, ehl_gpio_resume); 69 - 70 58 static const struct platform_device_id ehl_gpio_ids[] = { 71 59 { "gpio-elkhartlake" }, 72 60 { } ··· 64 76 static struct platform_driver ehl_gpio_driver = { 65 77 .driver = { 66 78 .name = "gpio-elkhartlake", 67 - .pm = pm_sleep_ptr(&ehl_gpio_pm_ops), 79 + .pm = pm_sleep_ptr(&tng_gpio_pm_ops), 68 80 }, 69 81 .probe = ehl_gpio_probe, 70 82 .id_table = ehl_gpio_ids,