aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/tc6393xb.c
diff options
context:
space:
mode:
authorArtem Bityutskiy2011-05-17 11:13:17 +0300
committerDavid Woodhouse2011-05-25 02:05:35 +0100
commit7c802fbd541448accec7bbc0e72ef38693a29593 (patch)
treeb9d91ee9e6f783fc12467b84eb7bd76e57bc005d /drivers/mfd/tc6393xb.c
parent447d9bd82020f159456ee00b011486205205aaa7 (diff)
mtd: be silent when mtd partition parser cannot be found
Currently when we register partitions in 'parse_mtd_partitions()' we accept the list of parsers we should try. And if one of the parsers was not found we print a message. Well, first of all this whole idea is bad - look at how many 'part_probes' and 'part_probe_types' variables we have - nearly every driver defines one. Instead, we should just go through all registered parsers all the time. But this needs to be worked on separately. This patch makes life of MTD partitions' users a bit simpler and allows them to safely request parsers which have not been registered - 'parse_mtd_partitions()' will not print a "not available" message in this case. The point is that drivers do not have to do things like this any longer: static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "afs", NULL }; but can simply do like this: static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "afs", NULL }; Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mfd/tc6393xb.c')
0 files changed, 0 insertions, 0 deletions