mmc: mmci: Fix compiler error when CONFIG_OF is not set
authorLee Jones <lee.jones@linaro.org>
Tue, 8 May 2012 12:59:38 +0000 (13:59 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 8 May 2012 14:36:52 +0000 (10:36 -0400)
commitc0a120a4bc68f5dc5f5238e76013cc18bac0ffed
tree45fa417548b88e992e11fe2f54c99ec9c6972693
parent9a597016058520665452390df919428e4edd7770
mmc: mmci: Fix compiler error when CONFIG_OF is not set

error: implicit declaration of function 'mmci_dt_populate_generic_pdata'

This is due to the '#if CONFIG_OF' guards placed around
mmci_dt_populate_generic_pdata(), but not around the call to it. We
repair this by inserting a stub which elegantly returns when CONFIG_OF
is not set.

Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mmci.c