aba245daad
The new device control API added a 'device_power_state' variable to the driver's data structure to keep track of the current power state set for a device. This member variable is conditionally built into the runtime data structure of each driver, but in some cases the whole data structure is conditional on its respective API_REENTRANCY config variable. In those cases where the runtime data was previously used only for reentrancy protection, the runtime data pointer used for device initialization is NULL, and when power management is enabled, this invalid pointer ends up dereferenced to get the device_power_state member. Make the declaration of the runtime data dependent on any of its conditional members, and NULL only when all of those settings are disabled. Change-Id: I4f41e00ad8551a096db639e31d33f43752b6672f Signed-off-by: Iván Briano <ivan.briano@intel.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rtc_qmsi.c |