]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
PCI: pci_driver make name const
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 2 Sep 2010 21:28:51 +0000 (14:28 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 15 Oct 2010 20:09:49 +0000 (13:09 -0700)
The name field in pci_driver should be const, it is not
modified by PCI subsystem.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
include/linux/pci.h

index c8d95e369ff441fe54760192ce4a0d9922f0508a..30faf4f3db0b11ab0cdf6ec195958e634be80e2a 100644 (file)
@@ -541,7 +541,7 @@ struct pci_error_handlers {
 struct module;
 struct pci_driver {
        struct list_head node;
-       char *name;
+       const char *name;
        const struct pci_device_id *id_table;   /* must be non-NULL for probe to be called */
        int  (*probe)  (struct pci_dev *dev, const struct pci_device_id *id);   /* New device inserted */
        void (*remove) (struct pci_dev *dev);   /* Device removed (NULL if not a hot-plug capable driver) */