diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-05-05 22:03:49 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-05-05 22:03:49 -0400 |
commit | 342d6666f7276723e418b91c885b0c03f02eeaaf (patch) | |
tree | 6401ba9f7b6256de0aa688f39dbf387d94183b66 /arch/powerpc/platforms | |
parent | 96cf3f66debbff7bc880ea747c10eef2d977a6fe (diff) |
powerpc/cell/iommu: Improve error message for missing node
Some devices don't have a correct node ID and thus can't be
attached to an iommu.
The message displayed by the iommu code isn't very useful if
you don't have a device-tree node as it tries to print the
device-tree path but not the struct device name.
Improve this by printing the device name as well.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index e56bb651da1a..946306b1bb4e 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -550,7 +550,7 @@ static struct iommu_table *cell_get_iommu_table(struct device *dev) | |||
550 | */ | 550 | */ |
551 | iommu = cell_iommu_for_node(dev_to_node(dev)); | 551 | iommu = cell_iommu_for_node(dev_to_node(dev)); |
552 | if (iommu == NULL || list_empty(&iommu->windows)) { | 552 | if (iommu == NULL || list_empty(&iommu->windows)) { |
553 | printk(KERN_ERR "iommu: missing iommu for %s (node %d)\n", | 553 | dev_err(dev, "iommu: missing iommu for %s (node %d)\n", |
554 | of_node_full_name(dev->of_node), dev_to_node(dev)); | 554 | of_node_full_name(dev->of_node), dev_to_node(dev)); |
555 | return NULL; | 555 | return NULL; |
556 | } | 556 | } |