]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: davinci: hawk: use gpio descriptor for mmc pins
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 24 Nov 2016 15:04:52 +0000 (16:04 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 28 Nov 2016 08:30:55 +0000 (14:00 +0530)
commitc69f43fb4f26ddb45c285dfdfc7d7e9c5993d11c
tree1f941bedf832b1500f61ff1772aa4cdc868256a8
parent8439a1d77d07514fadc616a2691b5d130ce0b678
ARM: davinci: hawk: 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>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-omapl138-hawk.c