ARM: davinci: da830-evm: use gpio descriptor for mmc pins
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 24 Nov 2016 15:04:54 +0000 (16:04 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 28 Nov 2016 08:31:17 +0000 (14:01 +0530)
commitb5e1438cf98a1c588726b0f861178f9aa5a96caf
tree6fe31504f312478b8212288ea5f931e97690d169
parentbdf0e8364fd3a0c510a4f5d54b6e567903143cdb
ARM: davinci: da830-evm: use gpio descriptor for mmc pins

Currently the mmc driver is polling the gpio to know if the
card was removed.

By using a gpio descriptor instead of the platform callbacks,
the driver will be able to register the gpio using the mmc core
APIs designed for this purpose.

This has the advantage that an irq will be registered, and
polling is no longer needed. Also, a dependency on platform
callbacks is removed for this board.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[nsekhar@ti.com: minor commit message edit]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da830-evm.c