commit | 389b6699a2aa0b457aa69986e9ddf39f3b4030fd | [log] [tgz] |
---|---|---|
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | Fri Mar 04 16:48:14 2016 +0200 |
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | Fri Apr 08 16:11:53 2016 +0300 |
tree | 51dfe4d9f5d035387c092e70d0fab54ea82d0432 | |
parent | cbe4a61d1ddc4790d950ca8c33ef79ee68ef5e2b [diff] |
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>