Skip to content

Commit

Permalink
platform/x86: surface3_power: Use dev_err() instead of pr_err()
Browse files Browse the repository at this point in the history
We have device and we may use it to print messages.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Andy Shevchenko committed Mar 28, 2020
1 parent c9c1091 commit 74bef18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/surface3_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ mshw0011_space_handler(u32 function, acpi_physical_address command,
ret = mshw0011_bst(cdata, &gsb->bst);
break;
default:
pr_info("command(0x%02x) is not supported.\n", gsb->cmd.arg1);
dev_info(&cdata->bat0->dev, "command(0x%02x) is not supported.\n", gsb->cmd.arg1);
ret = AE_BAD_PARAMETER;
goto err;
}
Expand Down

0 comments on commit 74bef18

Please sign in to comment.