Skip to content

Commit

Permalink
ipmi: Report an error if ACPI _IFT doesn't exist
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corey Minyard committed May 6, 2015
1 parent 15c5725 commit a182a4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a182a4b

Please sign in to comment.