mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
[MTD] [MAPS] Fix missing printk() parameter in physmap_of.c MTD driver
Squashes a compiler warning, and provides more useful information in the case messed up device tree information. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
711fdf627c
commit
2d0fa586fa
@ -186,7 +186,7 @@ static int __devinit of_physmap_probe(struct of_device *dev, const struct of_dev
|
|||||||
else {
|
else {
|
||||||
if (strcmp(of_probe, "ROM"))
|
if (strcmp(of_probe, "ROM"))
|
||||||
dev_dbg(&dev->dev, "map_probe: don't know probe type "
|
dev_dbg(&dev->dev, "map_probe: don't know probe type "
|
||||||
"'%s', mapping as rom\n");
|
"'%s', mapping as rom\n", of_probe);
|
||||||
info->mtd = do_map_probe("mtd_rom", &info->map);
|
info->mtd = do_map_probe("mtd_rom", &info->map);
|
||||||
}
|
}
|
||||||
if (info->mtd == NULL) {
|
if (info->mtd == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user