spi: dw: use managed resources
authorBaruch Siach <baruch@tkos.co.il>
Mon, 30 Dec 2013 18:30:44 +0000 (20:30 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 31 Dec 2013 12:30:18 +0000 (12:30 +0000)
commit04f421e7b0b10de3fae543dac4d324b449a1db6b
treecdbb475e66a2ac6bc755d83f04eeabaf43569cbb
parent0a47d3c40428fb8174ea36ede35267ddc7042f34
spi: dw: use managed resources

Migrate mmio code and core driver to managed resources to reduce boilerplate
error handling code. Also, handle clk_enable() failure while at it, and drop
unused dw_spi iolen field.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-dw-pci.c
drivers/spi/spi-dw.c
drivers/spi/spi-dw.h