mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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 <treding@nvidia.com> Acked-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6aa2621183
commit
47e7b05001
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ static int tegra_nvec_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = mfd_add_devices(nvec->dev, -1, nvec_devices,
|
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)
|
if (ret)
|
||||||
dev_err(nvec->dev, "error adding subdevices\n");
|
dev_err(nvec->dev, "error adding subdevices\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue