verbose_scan.patch

Corentin Chary, 11/05/2009 12:16 pm

Download (892 Bytes)

b/drivers/acpi/scan.c
251 251
	 * If the device is not present, it is unnecessary to load device
252 252
	 * driver for it.
253 253
	 */
254
	printk(KERN_WARNING " match device ids %d \n", !device->status.present);
254 255
	if (!device->status.present)
255 256
		return -ENODEV;
256 257

  
257 258
	for (id = ids; id->id[0]; id++)
258
		list_for_each_entry(hwid, &device->pnp.ids, list)
259
			if (!strcmp((char *) id->id, hwid->id))
259
		list_for_each_entry(hwid, &device->pnp.ids, list) {
260
			printk(KERN_WARNING "[%s] = [%s] \n", id->id, hwid->id);
261
			if (!strcmp((char *) id->id, hwid->id)) {
262
				printk(KERN_WARNING "found\n");
260 263
				return 0;
261

  
264
			}
265
		}
266
	printk(KERN_WARNING " not found \n");
262 267
	return -ENOENT;
263 268
}
264 269
EXPORT_SYMBOL(acpi_match_device_ids);