|
@@ -827,7 +827,7 @@ static int zynq_gpio_probe(struct platform_device *pdev)
|
|
chip->free = zynq_gpio_free;
|
|
chip->free = zynq_gpio_free;
|
|
chip->direction_input = zynq_gpio_dir_in;
|
|
chip->direction_input = zynq_gpio_dir_in;
|
|
chip->direction_output = zynq_gpio_dir_out;
|
|
chip->direction_output = zynq_gpio_dir_out;
|
|
- chip->base = -1;
|
|
|
|
|
|
+ chip->base = of_alias_get_id(pdev->dev.of_node, "gpio");
|
|
chip->ngpio = gpio->p_data->ngpio;
|
|
chip->ngpio = gpio->p_data->ngpio;
|
|
|
|
|
|
/* Retrieve GPIO clock */
|
|
/* Retrieve GPIO clock */
|