Skip to content

Commit c0a120a

Browse files
Lee Jonescjb
authored andcommitted
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>
1 parent 9a59701 commit c0a120a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/mmc/host/mmci.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,12 @@ static void mmci_dt_populate_generic_pdata(struct device_node *np,
12411241
pr_warn("%s: Unsupported bus width\n", np->full_name);
12421242
}
12431243
}
1244+
#else
1245+
static void mmci_dt_populate_generic_pdata(struct device_node *np,
1246+
struct mmci_platform_data *pdata)
1247+
{
1248+
return;
1249+
}
12441250
#endif
12451251

12461252
static int __devinit mmci_probe(struct amba_device *dev,

0 commit comments

Comments
 (0)