Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a182a4b2 authored by Corey Minyard's avatar Corey Minyard
Browse files

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: default avatarCorey Minyard <cminyard@mvista.com>
parent 15c5725e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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: