]> 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)
commit03667def72e2879b7b4938e5d7b43791d5f369a0
tree56cb66dc99bbb43df472bcd4a3f5ca824308ab09
parenta635fd99cd6187ee88fde7357e45666680310e84
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