diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-09-02 17:28:51 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-10-15 16:09:49 -0400 |
commit | 42b219322a97ccef347388b233aceaafe3fa517d (patch) | |
tree | eb810f27080a9eab5cee2e52413fcc46788d7a15 | |
parent | 5a37f1381f1d8625fa458360c9b5d17f0c5f1dea (diff) |
PCI: pci_driver make name const
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>
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index c8d95e369ff..30faf4f3db0 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -541,7 +541,7 @@ struct pci_error_handlers { | |||
541 | struct module; | 541 | struct module; |
542 | struct pci_driver { | 542 | struct pci_driver { |
543 | struct list_head node; | 543 | struct list_head node; |
544 | char *name; | 544 | const char *name; |
545 | const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ | 545 | const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ |
546 | int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ | 546 | int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ |
547 | void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ | 547 | void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ |