spi/ep93xx: clean probe/remove routines
authorHannu Heikkinen <hannuxx@iki.fi>
Wed, 9 May 2012 14:26:26 +0000 (17:26 +0300)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 10 May 2012 00:37:42 +0000 (18:37 -0600)
commit6d6467ee58b4cddd34b01d642d282a353dd57ce9
treeaff8db927d873c5810ef7d7ad004e53639480017
parent3aa450c063e29b4f4b622480e1779e5e256d8f8f
spi/ep93xx: clean probe/remove routines

Use devm_* functions for managing devres resources.

Also use local variable irq and remove irq variable from
struct ep93xx_spi, as it is needed only in probe routine.

Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Hannu Heikkinen <hannuxx@iki.fi>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-ep93xx.c