فهرست منبع

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>
Corey Minyard 10 سال پیش
والد
کامیت
a182a4b2b3
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      drivers/char/ipmi/ipmi_si_intf.c

+ 3 - 1
drivers/char/ipmi/ipmi_si_intf.c

@@ -2262,8 +2262,10 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
 
 
 	/* _IFT tells us the interface type: KCS, BT, etc */
 	/* _IFT tells us the interface type: KCS, BT, etc */
 	status = acpi_evaluate_integer(handle, "_IFT", NULL, &tmp);
 	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;
 		goto err_free;
+	}
 
 
 	switch (tmp) {
 	switch (tmp) {
 	case 1:
 	case 1: