diff options
author | Rafał Miłecki <[email protected]> | 2018-01-16 16:45:42 +0100 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2018-02-12 13:39:20 +0100 |
commit | 0dbe4ea78d69756efeb0bba0764f6bd4a9ee9567 (patch) | |
tree | 62b0d3e98ec1d6d8375c3ce7655737ccc786c166 /scripts/gdb/linux/modules.py | |
parent | 2c77c57d22adb05b21cdb333a0c42bdfa0e19835 (diff) |
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 <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions