Commit a3bb44bc authored by Andy Shevchenko's avatar Andy Shevchenko

gpio: pch: Remove duplicate assignments

There is no need to assign the same values which core does for us anyway.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 0511e116
...@@ -222,7 +222,6 @@ static void pch_gpio_setup(struct pch_gpio *chip) ...@@ -222,7 +222,6 @@ static void pch_gpio_setup(struct pch_gpio *chip)
gpio->get = pch_gpio_get; gpio->get = pch_gpio_get;
gpio->direction_output = pch_gpio_direction_output; gpio->direction_output = pch_gpio_direction_output;
gpio->set = pch_gpio_set; gpio->set = pch_gpio_set;
gpio->dbg_show = NULL;
gpio->base = -1; gpio->base = -1;
gpio->ngpio = gpio_pins[chip->ioh]; gpio->ngpio = gpio_pins[chip->ioh];
gpio->can_sleep = false; gpio->can_sleep = false;
...@@ -389,9 +388,7 @@ static int pch_gpio_probe(struct pci_dev *pdev, ...@@ -389,9 +388,7 @@ static int pch_gpio_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, chip); pci_set_drvdata(pdev, chip);
spin_lock_init(&chip->spinlock); spin_lock_init(&chip->spinlock);
pch_gpio_setup(chip); 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); ret = devm_gpiochip_add_data(&pdev->dev, &chip->gpio, chip);
if (ret) { if (ret) {
dev_err(&pdev->dev, "PCH gpio: Failed to register GPIO\n"); dev_err(&pdev->dev, "PCH gpio: Failed to register GPIO\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment