]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/tokenring/3c359.c: squish a warning
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 14 May 2008 23:20:15 +0000 (16:20 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 22 May 2008 10:03:29 +0000 (06:03 -0400)
When dev_name() is changed to return `const char *':

drivers/net/tokenring/3c359.c: In function 'xl_probe':
drivers/net/tokenring/3c359.c:318: warning: assignment discards qualifiers from pointer target type

Cc: Jeff Garzik <jeff@garzik.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/tokenring/3c359.h

index b880cba0f6fd9429f4b859f9ca1f046e23c29f54..74cf8e1a181bd12e245449e197ba5c4e5d59e671 100644 (file)
@@ -264,7 +264,7 @@ struct xl_private {
        u16 asb;
 
        u8 __iomem *xl_mmio;
-       char *xl_card_name;
+       const char *xl_card_name;
        struct pci_dev *pdev ; 
        
        spinlock_t xl_lock ;