diff options
author | 2015-06-01 16:17:17 -0700 | |
---|---|---|
committer | 2015-06-16 18:46:09 -0700 | |
commit | 6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28 (patch) | |
tree | 7eb360d79b27a929ca9cad3506b9ead3b0567f0f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mtd: dc21285: use raw spinlock functions for nw_gpio_lock (diff) | |
download | wireguard-linux-6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28.tar.xz wireguard-linux-6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28.zip |
mtd: diskonchip: remove two-phase partitioning / registration
It is a Bad Idea (TM) to call mtd_device_register() or
mtd_device_parse_register() twice on the same master MTD. Among other
things, it makes partition overrides (e.g., cmdlinepart) much more
difficult.
Since commit 727dc612c46b ("mtd: part: Create the master device node
when partitioned"), we now have a config option that accomplishes the
same purpose as the double-registration done in diskonchip.c -- it
forces the master MTD to *always* be registered, while partitions may
optionally show up in addition. Eventually, we might like to make
CONFIG_MTD_PARTITIONED_MASTER into the default, but this could be
disruptive to user-space expectations of MTD numbering, so we'll take
that slowly.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Alexander Shiyan <shc_work@mail.ru>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions