Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42b21932 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jesse Barnes
Browse files

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: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 5a37f138
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -541,7 +541,7 @@ struct pci_error_handlers {
struct module;
struct module;
struct pci_driver {
struct pci_driver {
	struct list_head node;
	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 */
	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 */
	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) */
	void (*remove) (struct pci_dev *dev);	/* Device removed (NULL if not a hot-plug capable driver) */