Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-10
Creator: Yinghai Lu <yhlu@tyan.com> pci_rom.h smbus device parent device print git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1929 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -613,10 +613,13 @@ void dev_initialize(void)
|
||||
struct device *dev;
|
||||
|
||||
printk_info("Initializing devices...\n");
|
||||
|
||||
for (dev = all_devices; dev; dev = dev->next) {
|
||||
if (dev->enabled && !dev->initialized &&
|
||||
dev->ops && dev->ops->init)
|
||||
{
|
||||
if(dev->path.type == DEVICE_PATH_I2C)
|
||||
printk_debug("smbus: %s[%d]->", dev_path(dev->bus->dev), dev->bus->link );
|
||||
printk_debug("%s init\n", dev_path(dev));
|
||||
dev->initialized = 1;
|
||||
dev->ops->init(dev);
|
||||
|
Reference in New Issue
Block a user