mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
gpio-exar/8250-exar: Rearrange gpiochip parenthood
Set the parent of the exar gpiochip to its platform device, like other gpiochips are doing it. In order to keep the relationship discoverable for ACPI systems, set the platform device companion to the PCI device. Signed-off-by: Jan Kiszka <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
8847f5f9ef
commit
4076cf08ac
2 changed files with 3 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ static int gpio_exar_probe(struct platform_device *pdev)
|
|||
|
||||
sprintf(exar_gpio->name, "exar_gpio%d", index);
|
||||
exar_gpio->gpio_chip.label = exar_gpio->name;
|
||||
exar_gpio->gpio_chip.parent = &pcidev->dev;
|
||||
exar_gpio->gpio_chip.parent = &pdev->dev;
|
||||
exar_gpio->gpio_chip.direction_output = exar_direction_output;
|
||||
exar_gpio->gpio_chip.direction_input = exar_direction_input;
|
||||
exar_gpio->gpio_chip.get_direction = exar_get_direction;
|
||||
|
|
|
|||
Loading…
Reference in a new issue