]> Pileus Git - ~andy/linux/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)
commit9cb238c00ba5c1ddfff2c2ed6aa66c15b962e4c3
tree56cb66dc99bbb43df472bcd4a3f5ca824308ab09
parent31ee9181eb92cc727876ec5a2144a1b3cbdf5bb1
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