summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pch.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-11-07 20:29:53 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-07 16:34:06 +0100
commita3bb44bcb3a06b43940576f9749020a42d31a9c0 (patch)
treeb738a79eec2d1c3640e5f1bc4c5fdb43f8ca7947 /drivers/gpio/gpio-pch.c
parentgpio: pch: Remove redundant __func__ from debug print (diff)
downloadlinux-a3bb44bcb3a06b43940576f9749020a42d31a9c0.tar.xz
linux-a3bb44bcb3a06b43940576f9749020a42d31a9c0.zip
gpio: pch: Remove duplicate assignments
There is no need to assign the same values which core does for us anyway. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-pch.c')
-rw-r--r--drivers/gpio/gpio-pch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c
index 8759f5b4b8e4..9fadda50232b 100644
--- a/drivers/gpio/gpio-pch.c
+++ b/drivers/gpio/gpio-pch.c
@@ -222,7 +222,6 @@ static void pch_gpio_setup(struct pch_gpio *chip)
gpio->get = pch_gpio_get;
gpio->direction_output = pch_gpio_direction_output;
gpio->set = pch_gpio_set;
- gpio->dbg_show = NULL;
gpio->base = -1;
gpio->ngpio = gpio_pins[chip->ioh];
gpio->can_sleep = false;
@@ -389,9 +388,7 @@ static int pch_gpio_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, chip);
spin_lock_init(&chip->spinlock);
pch_gpio_setup(chip);
-#ifdef CONFIG_OF_GPIO
- chip->gpio.of_node = pdev->dev.of_node;
-#endif
+
ret = devm_gpiochip_add_data(&pdev->dev, &chip->gpio, chip);
if (ret) {
dev_err(&pdev->dev, "PCH gpio: Failed to register GPIO\n");