aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-tangier.c
diff options
context:
space:
mode:
authorRaag Jadav <[email protected]>2023-11-13 13:16:00 +0000
committerAndy Shevchenko <[email protected]>2023-11-13 15:59:48 +0000
commitc4a79ae280a632786d6f9c7856ef27ebaa585ea7 (patch)
treeebb9b1d1c2faaa8245698dcee879668f8e1e07b1 /drivers/gpio/gpio-tangier.c
parentgpio: elkhartlake: reuse pm_ops from Intel Tangier driver (diff)
downloadkernel-c4a79ae280a632786d6f9c7856ef27ebaa585ea7.tar.gz
kernel-c4a79ae280a632786d6f9c7856ef27ebaa585ea7.zip
gpio: tangier: unexport suspend/resume handles
Unexport suspend/resume handles for the lack of external users and while at it, make them static, so that they can be discarded by the compiler if not used (CONFIG_PM_SLEEP=n). Signed-off-by: Raag Jadav <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-tangier.c')
-rw-r--r--drivers/gpio/gpio-tangier.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-tangier.c b/drivers/gpio/gpio-tangier.c
index 52d0868476e1..158fa9054e9c 100644
--- a/drivers/gpio/gpio-tangier.c
+++ b/drivers/gpio/gpio-tangier.c
@@ -478,7 +478,7 @@ int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio)
}
EXPORT_SYMBOL_NS_GPL(devm_tng_gpio_probe, GPIO_TANGIER);
-int tng_gpio_suspend(struct device *dev)
+static int tng_gpio_suspend(struct device *dev)
{
struct tng_gpio *priv = dev_get_drvdata(dev);
struct tng_gpio_context *ctx = priv->ctx;
@@ -503,9 +503,8 @@ int tng_gpio_suspend(struct device *dev)
return 0;
}
-EXPORT_SYMBOL_NS_GPL(tng_gpio_suspend, GPIO_TANGIER);
-int tng_gpio_resume(struct device *dev)
+static int tng_gpio_resume(struct device *dev)
{
struct tng_gpio *priv = dev_get_drvdata(dev);
struct tng_gpio_context *ctx = priv->ctx;
@@ -530,7 +529,6 @@ int tng_gpio_resume(struct device *dev)
return 0;
}
-EXPORT_SYMBOL_NS_GPL(tng_gpio_resume, GPIO_TANGIER);
EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS(tng_gpio_pm_ops, tng_gpio_suspend, tng_gpio_resume, GPIO_TANGIER);