platform/x86: surface3_power: Use dev_err() instead of pr_err()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 26 Mar 2020 12:19:45 +0000 (14:19 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 28 Mar 2020 20:37:29 +0000 (22:37 +0200)
We have device and we may use it to print messages.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/surface3_power.c

index 9cdae35..3eb1b48 100644 (file)
@@ -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;
        }