PNP: add pnp_eisa_id_to_string()
Converting the EISA ID to a string is messy and error-prone, and we might as well use the same code for ISAPNP and PNPBIOS. PNPACPI uses the conversion done by the ACPI core with acpi_ex_eisa_id_to_string(). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@ -332,7 +332,7 @@ static int __init insert_device(struct pnp_bios_node *node)
|
||||
if (!dev)
|
||||
return -1;
|
||||
|
||||
pnpid32_to_pnpid(node->eisa_id, id);
|
||||
pnp_eisa_id_to_string(node->eisa_id & PNP_EISA_ID_MASK, id);
|
||||
dev_id = pnp_add_id(dev, id);
|
||||
if (!dev_id) {
|
||||
kfree(dev);
|
||||
|
Reference in New Issue
Block a user