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)
commit9224c15c4342280e14272508e0a79cc7912246a1
tree94cb99dc58bb579726d897872d35a8a950122670
parent0ece01c67fc8eb9f2e523a7e1bc1826fbb837c1e
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