mfd: use pci_ioremap_bar() in sm501
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 28 Sep 2008 23:14:52 +0000 (16:14 -0700)
committerSamuel Ortiz <samuel@sortiz.org>
Tue, 21 Oct 2008 23:21:24 +0000 (01:21 +0200)
commit7ab18995e11089ea33c99fd586e8bad4932369e4
treed833cbcd9cee57dd5126a7bada36ebdcfdf3000f
parente76f7558d89868bc295fe1220c2e5a0a82f698f6
mfd: use pci_ioremap_bar() in sm501

Use the newly introduced pci_ioremap_bar() function in drivers/mfd.
pci_ioremap_bar() just takes a pci device and a bar number, with the goal
of making it really hard to get wrong, while also having a central place
to stick sanity checks.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/sm501.c