summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/stm/policy.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-03-04 16:48:14 +0200
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-04-08 16:11:53 +0300
commit389b6699a2aa0b457aa69986e9ddf39f3b4030fd (patch)
tree51dfe4d9f5d035387c092e70d0fab54ea82d0432 /drivers/hwtracing/stm/policy.c
parentcbe4a61d1ddc4790d950ca8c33ef79ee68ef5e2b (diff)
downloadlinux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.tar.gz
linux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.tar.bz2
linux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.zip
stm class: Fix stm device initialization order
Currently, stm_register_device() makes the device visible and then proceeds to initializing spinlocks and other properties, which leaves a window when the device can already be opened but is not yet fully operational. Fix this by reversing the initialization order. Reported-by: Alan Cox <alan.cox@intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Laurent Fert <laurent.fert@intel.com>
Diffstat (limited to 'drivers/hwtracing/stm/policy.c')
0 files changed, 0 insertions, 0 deletions