platform/x86: surface3_power: Use dev_err() instead of pr_err()

We have device and we may use it to print messages.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Andy Shevchenko 2020-03-26 14:19:45 +02:00
parent c9c10913ea
commit 74bef188ea

View File

@ -432,7 +432,7 @@ mshw0011_space_handler(u32 function, acpi_physical_address command,
ret = mshw0011_bst(cdata, &gsb->bst); ret = mshw0011_bst(cdata, &gsb->bst);
break; break;
default: 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; ret = AE_BAD_PARAMETER;
goto err; goto err;
} }