Skip to content

Commit a182a4b

Browse files
committed
ipmi: Report an error if ACPI _IFT doesn't exist
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>
1 parent 15c5725 commit a182a4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/char/ipmi/ipmi_si_intf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,8 +2262,10 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
22622262

22632263
/* _IFT tells us the interface type: KCS, BT, etc */
22642264
status = acpi_evaluate_integer(handle, "_IFT", NULL, &tmp);
2265-
if (ACPI_FAILURE(status))
2265+
if (ACPI_FAILURE(status)) {
2266+
dev_err(&dev->dev, "Could not find ACPI IPMI interface type\n");
22662267
goto err_free;
2268+
}
22672269

22682270
switch (tmp) {
22692271
case 1:

0 commit comments

Comments
 (0)