]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sa1111: ensure we only touch RAB bus type devices when removing
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 3 Sep 2016 08:14:58 +0000 (09:14 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 20 Sep 2016 13:21:07 +0000 (14:21 +0100)
commit8e659a55229fb6fbc9b9e27ac8135030837ffb96
tree899cfadfdea3ffaada5dc48f4031d98e26784743
parent6f0492d57521ebcb7738041489264027c3c20a0a
ARM: sa1111: ensure we only touch RAB bus type devices when removing

When removing a SA1111 device, we try to remove all child devices.
However, we must only remove our own RAB bus typed devices from the
tree, there may be other devices present which should not be touched.

This is necessary before we introduce gpiochip to SA1111 to avoid
incorrectly trying to remove the gpiochip device, leading to an oops
in __release_resource().

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/common/sa1111.c