spi/omap100k: Convert to runtime PM
authorMark Brown <broonie@kernel.org>
Wed, 10 Dec 2014 18:16:25 +0000 (18:16 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 17 Mar 2015 12:25:48 +0000 (12:25 +0000)
commitdb91841b58f9ad0ecbb81ed0fa496c3a1b67fd63
treec7281f488d88eb23543f83eea20c5c624ad4a19d
parentc517d838eb7d07bbe9507871fab3931deccff539
spi/omap100k: Convert to runtime PM

Currently the omap100k driver uses prepare and unprepare transfer hardware
to enable and disable clocks for the IP block. Since these functions are
called along with runtime PM and end up duplicating its functionality in a
less flexible fashion we are trying to phase them out so convert this
driver to do runtime PM instead.

While doing so add missing error handling and remove a redundant NULL
assignment.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap-100k.c