diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-06-01 16:17:20 -0700 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-26 14:34:07 -0700 |
commit | be0dbff8b46d69bd738f63b4fe0cf64417f776b0 (patch) | |
tree | 044a2240eba4a10e2a8d920ecd2119e19d84b3de /drivers/mtd/spi-nor | |
parent | 3e00ed0e984bbec47f5e531bad3cf36885aa5d83 (diff) |
mtd: warn when registering the same master many times
When CONFIG_MTD_PARTITIONED_MASTER=y, it is fatal to call
mtd_device_parse_register() twice on the same MTD, as we try to register
the same device/kobject multipile times.
When CONFIG_MTD_PARTITIONED_MASTER=n, calling
mtd_device_parse_register() is more of just a nuisance, as we can mostly
navigate around any conflicting actions.
But anyway, doing so is a Bad Thing (TM), and we should complain loudly
for any drivers that try to do this.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/spi-nor')
0 files changed, 0 insertions, 0 deletions