Skip to content

Commit

Permalink
memstick: rtsx_usb_ms: Use ms_dev() helper
Browse files Browse the repository at this point in the history
Use ms_dev() helper for consistency.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Kai-Heng Feng authored and Ulf Hansson committed Dec 17, 2018
1 parent e03e303 commit ba9d5f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/memstick/host/rtsx_usb_ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ static int rtsx_usb_ms_drv_remove(struct platform_device *pdev)

mutex_lock(&host->host_mutex);
if (host->req) {
dev_dbg(&(pdev->dev),
dev_dbg(ms_dev(host),
"%s: Controller removed during transfer\n",
dev_name(&msh->dev));
host->req->error = -ENOMEDIUM;
Expand All @@ -808,10 +808,10 @@ static int rtsx_usb_ms_drv_remove(struct platform_device *pdev)
if (pm_runtime_active(ms_dev(host)))
pm_runtime_put(ms_dev(host));

pm_runtime_disable(&pdev->dev);
pm_runtime_disable(ms_dev(host));
platform_set_drvdata(pdev, NULL);

dev_dbg(&(pdev->dev),
dev_dbg(ms_dev(host),
": Realtek USB Memstick controller has been removed\n");

return 0;
Expand Down

0 comments on commit ba9d5f8

Please sign in to comment.