ipmi: Report an error if ACPI _IFT doesn't exist
authorCorey Minyard <cminyard@mvista.com>
Wed, 22 Apr 2015 18:25:40 +0000 (13:25 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 6 May 2015 00:33:48 +0000 (19:33 -0500)
When probing an ACPI table, report a specific error, instead of just
returning an error, if _IFT doesn't exist.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c

index 4612741..b5a1b45 100644 (file)
@@ -2262,8 +2262,10 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
 
        /* _IFT tells us the interface type: KCS, BT, etc */
        status = acpi_evaluate_integer(handle, "_IFT", NULL, &tmp);
-       if (ACPI_FAILURE(status))
+       if (ACPI_FAILURE(status)) {
+               dev_err(&dev->dev, "Could not find ACPI IPMI interface type\n");
                goto err_free;
+       }
 
        switch (tmp) {
        case 1: