We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cafe9a2 commit 570237aCopy full SHA for 570237a
drivers/gpio/gpio-mxc.c
@@ -490,8 +490,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
490
port->gc.request = mxc_gpio_request;
491
port->gc.free = mxc_gpio_free;
492
port->gc.to_irq = mxc_gpio_to_irq;
493
- port->gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 :
494
- pdev->id * 32;
+ port->gc.base = of_alias_get_id(np, "gpio") * 32;
495
496
err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port);
497
if (err)
0 commit comments