|
@@ -1636,7 +1636,7 @@ void hif_runtime_lock_deinit(struct hif_opaque_softc *hif_ctx,
|
|
struct hif_pm_runtime_lock *data)
|
|
struct hif_pm_runtime_lock *data)
|
|
{
|
|
{
|
|
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
|
|
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
|
|
- struct hif_runtime_pm_ctx *rpm_ctx = hif_bus_get_rpm_ctx(scn);
|
|
|
|
|
|
+ struct hif_runtime_pm_ctx *rpm_ctx;
|
|
struct hif_pm_runtime_lock *context = data;
|
|
struct hif_pm_runtime_lock *context = data;
|
|
|
|
|
|
if (!context) {
|
|
if (!context) {
|
|
@@ -1651,6 +1651,7 @@ void hif_runtime_lock_deinit(struct hif_opaque_softc *hif_ctx,
|
|
* before freeing the context if context is active.
|
|
* before freeing the context if context is active.
|
|
*/
|
|
*/
|
|
if (scn) {
|
|
if (scn) {
|
|
|
|
+ rpm_ctx = hif_bus_get_rpm_ctx(scn);
|
|
spin_lock_bh(&rpm_ctx->runtime_lock);
|
|
spin_lock_bh(&rpm_ctx->runtime_lock);
|
|
__hif_pm_runtime_allow_suspend(scn, context);
|
|
__hif_pm_runtime_allow_suspend(scn, context);
|
|
spin_unlock_bh(&rpm_ctx->runtime_lock);
|
|
spin_unlock_bh(&rpm_ctx->runtime_lock);
|