diff mbox

[169/182] mfd: vexpress-sysreg: switch to gpiochip_add_data()

Message ID 1449668914-6545-1-git-send-email-linus.walleij@linaro.org
State Accepted
Commit 7ad073695dff7b1fc2a6ef2e8112d96a76fc8dc4
Headers show

Commit Message

Linus Walleij Dec. 9, 2015, 1:48 p.m. UTC
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
Lee please ACK this so I can take it through the GPIO tree.
---
 drivers/mfd/vexpress-sysreg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Lee Jones Dec. 10, 2015, 10:34 a.m. UTC | #1
On Wed, 09 Dec 2015, Linus Walleij wrote:

> We're planning to remove the gpiochip_add() function to swith

> to gpiochip_add_data() with NULL for data argument.

> 

> Cc: Lee Jones <lee.jones@linaro.org>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

> Lee please ACK this so I can take it through the GPIO tree.

> ---

>  drivers/mfd/vexpress-sysreg.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Acked-by: Lee Jones <lee.jones@linaro.org>


> diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c

> index 855c0204f09a..201a3ea2a9d3 100644

> --- a/drivers/mfd/vexpress-sysreg.c

> +++ b/drivers/mfd/vexpress-sysreg.c

> @@ -202,7 +202,7 @@ static int vexpress_sysreg_probe(struct platform_device *pdev)

>  	bgpio_init(mmc_gpio_chip, &pdev->dev, 0x4, base + SYS_MCI,

>  			NULL, NULL, NULL, NULL, 0);

>  	mmc_gpio_chip->ngpio = 2;

> -	gpiochip_add(mmc_gpio_chip);

> +	gpiochip_add_data(mmc_gpio_chip, NULL);

>  

>  	return mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,

>  			vexpress_sysreg_cells,


-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c
index 855c0204f09a..201a3ea2a9d3 100644
--- a/drivers/mfd/vexpress-sysreg.c
+++ b/drivers/mfd/vexpress-sysreg.c
@@ -202,7 +202,7 @@  static int vexpress_sysreg_probe(struct platform_device *pdev)
 	bgpio_init(mmc_gpio_chip, &pdev->dev, 0x4, base + SYS_MCI,
 			NULL, NULL, NULL, NULL, 0);
 	mmc_gpio_chip->ngpio = 2;
-	gpiochip_add(mmc_gpio_chip);
+	gpiochip_add_data(mmc_gpio_chip, NULL);
 
 	return mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,
 			vexpress_sysreg_cells,