u-boot/drivers/core
Masahiro Yamada 643e69021e dm: change dm_warn() message into debug() in uclass_add()
The command "dm uclass" tries to display all the UClasses, but
some of them might be disabled by Kconfig.

The function do_dm_dump_uclass() iterates over all the UClass IDs
and calls uclass_get() for each of them.  Then, it displays annoying
message "Cannot find uclass for id ..." every time it fails to get
the UClass.

As a result, we get much noisier log for the "dm uclass" command.

  => dm uclass
  uclass 0: root
  - * root_driver @ bfb54028, seq 0, (req -1)

  Cannot find uclass for id 1: please add the UCLASS_DRIVER() ...
  Cannot find uclass for id 2: please add the UCLASS_DRIVER() ...
  Cannot find uclass for id 3: please add the UCLASS_DRIVER() ...
  Cannot find uclass for id 4: please add the UCLASS_DRIVER() ...
  Cannot find uclass for id 5: please add the UCLASS_DRIVER() ...
  Cannot find uclass for id 6: please add the UCLASS_DRIVER() ...

This commit suppresses these warnings.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-07-21 17:39:34 -06:00
..
device-remove.c dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
device.c dm: core: Correct device_get_child_by_of_offset() parameter 2015-07-21 17:39:23 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
Kconfig dm: core: Allow sequence alias support to be removed for SPL 2015-04-23 09:05:51 -06:00
lists.c dm: core: Use debug() instead of printf() for failures 2015-07-21 17:39:22 -06:00
Makefile dm: Add support for generic system controllers (syscon) 2015-07-21 17:39:24 -06:00
regmap.c dm: Add support for register maps (regmap) 2015-07-21 17:39:23 -06:00
root.c dm: core: Select device tree control correctly for SPL 2015-04-23 09:05:54 -06:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -06:00
syscon-uclass.c dm: core: Add device checking to syscon_get_regmap() 2015-07-21 17:39:33 -06:00
uclass.c dm: change dm_warn() message into debug() in uclass_add() 2015-07-21 17:39:34 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00