diff mbox

pci_driver make name const

Message ID 20100902142851.6142ce92@nehalam (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Stephen Hemminger Sept. 2, 2010, 9:28 p.m. UTC
None
diff mbox

Patch

--- a/include/linux/pci.h	2010-09-02 10:51:53.781352393 -0700
+++ b/include/linux/pci.h	2010-09-02 10:52:10.596969106 -0700
@@ -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) */