i2c-designware-pci: use managed functions pcim_* and devm_*
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Apr 2013 00:36:38 +0000 (00:36 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Apr 2013 16:17:06 +0000 (18:17 +0200)
commit76cf3fc844a46b5cdb94da98bffcbd45d4c355b8
tree488d4ad6e6cc31496d8c2e66897fd5c9e589d160
parentca0c1ff528a332e6f83d4566c2c8eb05b108c83c
i2c-designware-pci: 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>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-pcidrv.c