]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: omap: Fix I2C dependency and make driver usable with device tree
authorTony Lindgren <tony@atomide.com>
Tue, 26 Nov 2013 23:50:33 +0000 (15:50 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 26 Nov 2013 23:51:16 +0000 (15:51 -0800)
commit8066c18e12ee5ed78414d90c7ee42f965a2d2aca
tree56cb66dc99bbb43df472bcd4a3f5ca824308ab09
parent9d29df63109375a933cc359549cd0d9179945f1c
mmc: omap: Fix I2C dependency and make driver usable with device tree

Some features can be configured by the companion I2C chips,
which may not be available at the probe time. Fix the issue
by returning -EPROBE_DEFER when the MMC controller slots
are not configured.

While at it, let's also add minimal device tree support so
omap24xx platforms can use this driver without legacy mode
since we claim to support device tree for mach-omap2 based
systems.

Although adding the minimal device tree support is not strictly
a fix, it does remove one of the last blockers for dropping a
bunch of legacy platform data for mach-omap2.

Cc: linux-mmc@vger.kernel.org
Acked-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Documentation/devicetree/bindings/mmc/ti-omap.txt [new file with mode: 0644]
drivers/mmc/host/omap.c