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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gpio-fixes-for-v7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

- gracefully handle missing regmap in gpio-bd72720

- fix IRQ resource release in gpio-tegra

- return -ENOMEM on devm_kzalloc() failure instead of -ENODEV in
gpio-tegra

* tag 'gpio-fixes-for-v7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
gpio: tegra: return -ENOMEM on allocation failure in probe
gpio: tegra: fix irq_release_resources calling enable instead of disable
gpio: bd72720: handle missing regmap

+4 -2
+2
drivers/gpio/gpio-bd72720.c
··· 256 256 g->dev = dev; 257 257 g->chip.parent = parent; 258 258 g->regmap = dev_get_regmap(parent, NULL); 259 + if (!g->regmap) 260 + return -ENODEV; 259 261 260 262 return devm_gpiochip_add_data(dev, &g->chip, g); 261 263 }
+2 -2
drivers/gpio/gpio-tegra.c
··· 595 595 struct tegra_gpio_info *tgi = gpiochip_get_data(chip); 596 596 597 597 gpiochip_relres_irq(chip, d->hwirq); 598 - tegra_gpio_enable(tgi, d->hwirq); 598 + tegra_gpio_disable(tgi, d->hwirq); 599 599 } 600 600 601 601 static void tegra_gpio_irq_print_chip(struct irq_data *d, struct seq_file *s) ··· 698 698 699 699 tgi = devm_kzalloc(&pdev->dev, sizeof(*tgi), GFP_KERNEL); 700 700 if (!tgi) 701 - return -ENODEV; 701 + return -ENOMEM; 702 702 703 703 tgi->soc = of_device_get_match_data(&pdev->dev); 704 704 tgi->dev = &pdev->dev;