]> git.sur5r.net Git - u-boot/commit
cmd: cpu: refactor to ensure devices are probed and improve code style
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 24 Apr 2017 22:39:17 +0000 (00:39 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 10 May 2017 14:16:09 +0000 (16:16 +0200)
commit320eca5cf77ebab347adab4f9bbdb5417b2da81d
tree0533007be35332914dd3976d130f27b4627dad72
parent3058104056f4d3b9ca382d64fd5f73fc16aa5590
cmd: cpu: refactor to ensure devices are probed and improve code style

Use uclass_first_device and uclass_next_device in order to avoid exceptions
for drivers that aren't probed when cpu ops are requested.
Improve code style and fix indentations.
Fix incorrect line break when cpu info is not available.
Remove unneeded brackets.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/cpu.c