gpio-langwell: use managed functions pcim_* and devm_*
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 May 2013 10:20:12 +0000 (13:20 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 30 May 2013 17:31:01 +0000 (19:31 +0200)
commit786e07ecb5b2ef896c9d42fa982d02da168e4290
tree6b26542dd9986bb252e8811a84a371e3b0ecd33e
parent64c8cbc17c8d4af3b600c66247e47eac99e46aaf
gpio-langwell: use managed functions pcim_* and devm_*

This makes the error handling much more simpler than open-coding everything and
in addition makes the probe function smaller an tidier.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
[Rebased on the platform-data set to NULL removal patch]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-langwell.c