]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Re: IA32 (2.6.3 - 2004-02-18.22.30) - 4 New warnings (gcc 3.2.2)
authorStephen Hemminger <shemminger@osdl.org>
Tue, 24 Feb 2004 15:00:08 +0000 (10:00 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 24 Feb 2004 15:00:08 +0000 (10:00 -0500)
Error path (EISA) probe was using device before set.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#            ChangeSet 1.1567  -> 1.1568
#   drivers/net/dgrs.c 1.23    -> 1.24
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/02/19 shemminger@osdl.org 1.1568
# fix bug in eisa error path.
# --------------------------------------------
#

drivers/net/dgrs.c

index 83d4a7085ba0cb7234d01b409112c30888d58979..04c00c224924819f5b44fa86764335a6b01bc123 100644 (file)
@@ -1468,8 +1468,7 @@ static int __init dgrs_eisa_probe (struct device *gendev)
        int     rc = -ENODEV; /* Not EISA configured */
 
        if (!request_region(io, 256, "RightSwitch")) {
-               printk(KERN_ERR "%s: io 0x%3lX, which is busy.\n", dev->name,
-                               dev->base_addr);
+               printk(KERN_ERR "dgrs: eisa io 0x%x, which is busy.\n", io);
                return -EBUSY;
        }