Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 421b36e9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sd: call blk_pm_runtime_init before add_disk"

parents a4f79c00 8bf16614
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2842,6 +2842,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
		gd->events |= DISK_EVENT_MEDIA_CHANGE;
	}

	blk_pm_runtime_init(sdp->request_queue, dev);
	add_disk(gd);
	if (sdkp->capacity)
		sd_dif_config_host(sdkp);
@@ -2850,7 +2851,6 @@ static void sd_probe_async(void *data, async_cookie_t cookie)

	sd_printk(KERN_NOTICE, sdkp, "Attached SCSI %sdisk\n",
		  sdp->removable ? "removable " : "");
	blk_pm_runtime_init(sdp->request_queue, dev);
	scsi_autopm_put_device(sdp);
	put_device(&sdkp->dev);
}