ARM: davinci: da850-evm: use gpio descriptor for mmc pins
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 24 Nov 2016 15:04:53 +0000 (16:04 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 28 Nov 2016 08:31:16 +0000 (14:01 +0530)
commitbdf0e8364fd3a0c510a4f5d54b6e567903143cdb
treedab0fc2abb84787c71fa9d38f8f7d851b6e11465
parentc69f43fb4f26ddb45c285dfdfc7d7e9c5993d11c
ARM: davinci: da850-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-da850-evm.c