]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] amba: fix amba device resources
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 5 Jul 2009 21:39:08 +0000 (22:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 5 Jul 2009 21:39:08 +0000 (22:39 +0100)
commit3adaa532347ce85eb8633d271650f0479638b18c
treea84d89d63e5b3a3bf72bbf7aaa0ac907ec5ce6a5
parent293fc19bbe9180502d221b9f13191e2b665cc3b1
[ARM] amba: fix amba device resources

AMBA device resources were being reported as:

10004000-10004fff : <BAD>

This is because dev_name() was returning NULL prior to device_register.
Ensure that the struct device is properly initialized, and the name is
set before adding it to the device tree.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c