mailbox: pcc: Drop uninformative output during boot
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 1 Aug 2017 12:43:57 +0000 (13:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2017 23:33:01 +0000 (01:33 +0200)
When booting on an ACPI enabled system that does not provide the
Platform Communications Channel Table (PCCT), the pcc mailbox driver
prints -

[    0.484261] PCCT header not found.

during probe before returning -ENODEV.

This message clutters the bootlog and doesn't provide any useful
information. Drop this message.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Alexey Klimov <alexey.klimov@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mailbox/pcc.c

index cbca5e51b9759c57813b8579a2d38318bab39e02..9b7005e1345e1a2b0f76ddc8e429a070d4c65790 100644 (file)
@@ -457,10 +457,8 @@ static int __init acpi_pcc_probe(void)
        /* Search for PCCT */
        status = acpi_get_table(ACPI_SIG_PCCT, 0, &pcct_tbl);
 
-       if (ACPI_FAILURE(status) || !pcct_tbl) {
-               pr_warn("PCCT header not found.\n");
+       if (ACPI_FAILURE(status) || !pcct_tbl)
                return -ENODEV;
-       }
 
        count = acpi_table_parse_entries(ACPI_SIG_PCCT,
                        sizeof(struct acpi_table_pcct),