Revert "convert to zalloc"
authorHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:56:27 +0000 (01:56 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:56:27 +0000 (01:56 +0200)
This reverts commit 3414fd8df8c514947254fd065d407e8db115221f.

src/drivers/bus/isa.c

index edcf05b..a4105fd 100644 (file)
@@ -105,11 +105,12 @@ static int isabus_probe ( struct root_device *rootdev ) {
                      ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
                        /* Allocate struct isa_device */
                        if ( ! isa )
-                               isa = zalloc ( sizeof ( *isa ) );
+                               isa = malloc ( sizeof ( *isa ) );
                        if ( ! isa ) {
                                rc = -ENOMEM;
                                goto err;
                        }
+                       memset ( isa, 0, sizeof ( *isa ) );
                        isa->driver = driver;
                        isa->ioaddr = ISA_IOADDR ( driver, ioidx );