提交 e0db3dee 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

eeprom: idt_89hpesx: Restore printing the unsupported fwnode name

When iterating over child firmware nodes restore printing the name of ones
that are not supported.

While at it, refactor loop body to clearly show that we stop at the first match.

Fixes: db15d73e ("eeprom: idt_89hpesx: Support both ACPI and OF probing")
Cc: Huy Duong <qhuyduong@hotmail.com>
Signed-off-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210607221757.81465-2-andy.shevchenko@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3f6ee1c0
...@@ -1126,11 +1126,10 @@ static void idt_get_fw_data(struct idt_89hpesx_dev *pdev) ...@@ -1126,11 +1126,10 @@ static void idt_get_fw_data(struct idt_89hpesx_dev *pdev)
device_for_each_child_node(dev, fwnode) { device_for_each_child_node(dev, fwnode) {
ee_id = idt_ee_match_id(fwnode); ee_id = idt_ee_match_id(fwnode);
if (!ee_id) { if (ee_id)
dev_warn(dev, "Skip unsupported EEPROM device");
continue;
} else
break; break;
dev_warn(dev, "Skip unsupported EEPROM device %pfw\n", fwnode);
} }
/* If there is no fwnode EEPROM device, then set zero size */ /* If there is no fwnode EEPROM device, then set zero size */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册