]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: fix initialization without 'add_device' callback
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 19 Nov 2014 11:15:31 +0000 (11:15 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 1 Dec 2014 16:50:41 +0000 (16:50 +0000)
commitf447e119d9f8fd3b1bd3914215ca9e46610c79eb
tree3b9a0f9bd372b502fc7b03bcd9fa1959abda2b32
parentc950f30781d3315e77f25dcee12a82792558469d
iommu: fix initialization without 'add_device' callback

IOMMU drivers can be initialized from of_iommu helpers. Such drivers don't
need to provide device_add callbacks to operate properly, so there is no
need to fail initialization if the callback is missing.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/iommu.c