]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vchiq_arm: change order during module probe
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 31 Oct 2016 14:39:33 +0000 (14:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:05:47 +0000 (11:05 +0100)
commit6788ea00339d7230823648445187341f8f939428
tree94cb99dc58bb579726d897872d35a8a950122670
parentf7e937a6321a67ad845746533f41a190870db8f3
staging: vchiq_arm: change order during module probe

The current order during module probe is prone to race conditions:

* debugfs entries, sysfs entries, platform code

So fix this by swapping the steps debugfs entries and platform code.
As a benefit this saves us a clean up step in the error path.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c