]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Remove "reg" data prints from early_init_dt_scan_memory
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 12 Apr 2015 20:16:26 +0000 (13:16 -0700)
committerRob Herring <robh@kernel.org>
Wed, 15 Apr 2015 00:35:43 +0000 (19:35 -0500)
commit537cd5a409685450c02095b1baf6732652da469a
treec265c9c7e35492a6f3fd8237f610bb00ed644887
parent37999a0994f652f92567dcf4582256af601fd9e7
of/fdt: Remove "reg" data prints from early_init_dt_scan_memory

Commit e1b76f1503dab ("of/flattree: merge early_init_dt_scan_memory()
common code") consolidated some code from PowerPC (typically
big-endian), and ended-up adding a pr_debug() printing reg properties in
big-endian (DT native) format, not CPU endian.

This debug print suffers from two problems:
- we only print 4 "reg" values, while there could be more on typical
  systems having multiple memory ranges
- we print these 4 "reg" values in FDT endianess, that is big-endian,
  and these values could be confusing for little-endian configurations

Since we are already printing the base address and size of the memory
regions parsed by early_init_dt_scan_memory() later in a way that is
both endian correct, and takes into account arbitrary number of memory
banks, just remove that part of the debug print.

Suggested-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c