diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-01-16 16:45:42 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-02-12 13:39:20 +0100 |
commit | 0dbe4ea78d69756efeb0bba0764f6bd4a9ee9567 (patch) | |
tree | 62b0d3e98ec1d6d8375c3ce7655737ccc786c166 /drivers/mtd/Makefile | |
parent | mtd: move code adding master MTD out of mtd_add_device_partitions() (diff) | |
download | linux-0dbe4ea78d69756efeb0bba0764f6bd4a9ee9567.tar.xz linux-0dbe4ea78d69756efeb0bba0764f6bd4a9ee9567.zip |
mtd: get rid of the mtd_add_device_partitions()
This simplifies code a bit by:
1) Avoiding an extra (tiny) function
2) Checking for amount of parsed (found) partitions just once
3) Avoiding clearing/filling struct mtd_partitions manually
With this commit proper functions are called directly from the
mtd_device_parse_register(). It doesn't need to use minor tricks like
memsetting struct to 0 to trigger an expected
mtd_add_device_partitions() behavior.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/Makefile')
0 files changed, 0 insertions, 0 deletions