From: Mika Westerberg Date: Mon, 7 Jan 2013 10:44:32 +0000 (+0200) Subject: spi/pxa2xx-pci: switch to use pcim_* interfaces X-Git-Tag: v3.9-rc1~148^2~27^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0202775bc3a28f2436ea6ee13ef3eb0e8f237857;p=pandora-kernel.git spi/pxa2xx-pci: switch to use pcim_* interfaces Instead of open-coding all the error management in the driver we can take advantage of the pcim_* interfaces that release the resources automatically. We also use platform_device_register_full() to register the platform device because it allows us to create and register the platform device at one go, simplifying the error management. This a preparatory step for getting rid of pxa_ssp_request()/free() which we will do in the next patch. Signed-off-by: Mika Westerberg Signed-off-by: Mark Brown --- Reading git-diff-tree failed