diff options
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/msm/msm_11ad/msm_11ad.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/platform/msm/msm_11ad/msm_11ad.c b/drivers/platform/msm/msm_11ad/msm_11ad.c index f1e348969c7b..f00cc69aa0d5 100644 --- a/drivers/platform/msm/msm_11ad/msm_11ad.c +++ b/drivers/platform/msm/msm_11ad/msm_11ad.c @@ -523,7 +523,7 @@ int msm_11ad_ctrl_aspm_l1(struct msm11ad_ctx *ctx, bool enable) return rc; } -static int ops_suspend(void *handle) +static int ops_suspend(void *handle, bool keep_device_power) { int rc; struct msm11ad_ctx *ctx = handle; @@ -560,7 +560,7 @@ static int ops_suspend(void *handle) return rc; } -static int ops_resume(void *handle) +static int ops_resume(void *handle, bool device_powered_on) { int rc; struct msm11ad_ctx *ctx = handle; @@ -906,7 +906,7 @@ out_rc: static void msm_11ad_init_cpu_boost(struct msm11ad_ctx *ctx) { unsigned int minfreq = 0, maxfreq = 0, freq; - int i, boost_cpu; + int i, boost_cpu = 0; for_each_possible_cpu(i) { freq = cpufreq_quick_get_max(i); @@ -1147,7 +1147,7 @@ static int msm_11ad_probe(struct platform_device *pdev) device_disable_async_suspend(&pcidev->dev); list_add_tail(&ctx->list, &dev_list); - ops_suspend(ctx); + ops_suspend(ctx, false); return 0; out_rc: @@ -1315,7 +1315,7 @@ static void ops_uninit(void *handle) memset(&ctx->rops, 0, sizeof(ctx->rops)); ctx->wil_handle = NULL; - ops_suspend(ctx); + ops_suspend(ctx, false); } static int msm_11ad_notify_crash(struct msm11ad_ctx *ctx) @@ -1440,7 +1440,7 @@ int msm_11ad_modinit(void) ctx->subsys_handle = subsystem_get(ctx->subsysdesc.name); - return ops_resume(ctx); + return ops_resume(ctx, false); } EXPORT_SYMBOL(msm_11ad_modinit); |