From: Thierry Reding Date: Tue, 29 Jul 2014 11:16:14 +0000 (+0200) Subject: staging/nvec: Do not pass resource to mfd_add_devices() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47e7b05001d8634704b1563ba93863194ac129f0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging/nvec: Do not pass resource to mfd_add_devices() The mfd_add_devices() function takes a struct resource * as fifth argument, but the nvec driver passes in a void __iomem *. The driver gets away with it because none of the subdevices ever directly access the registers. Since subdevices never need to access the registers we can simply pass NULL instead. Signed-off-by: Thierry Reding Acked-by: Marc Dietrich Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 0a5c84ad3f41..815065837ce7 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -893,7 +893,7 @@ static int tegra_nvec_probe(struct platform_device *pdev) } ret = mfd_add_devices(nvec->dev, -1, nvec_devices, - ARRAY_SIZE(nvec_devices), base, 0, NULL); + ARRAY_SIZE(nvec_devices), NULL, 0, NULL); if (ret) dev_err(nvec->dev, "error adding subdevices\n");