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)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 18 Aug 2017 01:04:49 +0000 (10:04 +0900)
commitdbdd0c5d86305d64e06720d2b63ed272e5c23ab1
tree3d02ab1d3aa70367067db4677df21c5370a717ba
parentd6b15800dc5a905a32497ba2baa371ce24f79560
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