提交 ef7b06cd 编写于 作者: D David Shaohua Li 提交者: Len Brown

[ACPI] quiet dmesg related to ACPI PM of PCI devices

DBG("No ACPI bus support for %s\n", dev->bus_id);
http://bugzilla.kernel.org/show_bug.cgi?id=4277Signed-off-by: NDavid Shaohua Li <shaohua.li@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 44f6c012
...@@ -29,7 +29,7 @@ int register_acpi_bus_type(struct acpi_bus_type *type) ...@@ -29,7 +29,7 @@ int register_acpi_bus_type(struct acpi_bus_type *type)
down_write(&bus_type_sem); down_write(&bus_type_sem);
list_add_tail(&type->list, &bus_type_list); list_add_tail(&type->list, &bus_type_list);
up_write(&bus_type_sem); up_write(&bus_type_sem);
DBG("ACPI bus type %s registered\n", type->bus->name); printk(KERN_INFO PREFIX "bus type %s registered\n", type->bus->name);
return 0; return 0;
} }
return -ENODEV; return -ENODEV;
...@@ -45,7 +45,7 @@ int unregister_acpi_bus_type(struct acpi_bus_type *type) ...@@ -45,7 +45,7 @@ int unregister_acpi_bus_type(struct acpi_bus_type *type)
down_write(&bus_type_sem); down_write(&bus_type_sem);
list_del_init(&type->list); list_del_init(&type->list);
up_write(&bus_type_sem); up_write(&bus_type_sem);
DBG("ACPI bus type %s unregistered\n", type->bus->name); printk(KERN_INFO PREFIX "ACPI bus type %s unregistered\n", type->bus->name);
return 0; return 0;
} }
return -ENODEV; return -ENODEV;
...@@ -314,14 +314,12 @@ static int acpi_platform_notify(struct device *dev) ...@@ -314,14 +314,12 @@ static int acpi_platform_notify(struct device *dev)
} }
type = acpi_get_bus_type(dev->bus); type = acpi_get_bus_type(dev->bus);
if (!type) { if (!type) {
printk(KERN_INFO PREFIX "No ACPI bus support for %s\n", DBG("No ACPI bus support for %s\n", dev->bus_id);
dev->bus_id);
ret = -EINVAL; ret = -EINVAL;
goto end; goto end;
} }
if ((ret = type->find_device(dev, &handle)) != 0) if ((ret = type->find_device(dev, &handle)) != 0)
printk(KERN_INFO PREFIX "Can't get handler for %s\n", DBG("Can't get handler for %s\n", dev->bus_id);
dev->bus_id);
end: end:
if (!ret) if (!ret)
acpi_bind_one(dev, handle); acpi_bind_one(dev, handle);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册