staging/nvec: Do not pass resource to mfd_add_devices()
authorThierry Reding <treding@nvidia.com>
Tue, 29 Jul 2014 11:16:14 +0000 (13:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:18:47 +0000 (17:18 -0700)
commit47e7b05001d8634704b1563ba93863194ac129f0
tree584814099984053a3ad6eedf84609a966c15b814
parent6aa2621183ee0142ebbcadff59417f0f1c10ae15
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>
drivers/staging/nvec/nvec.c