Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

agp: amd64: constify pci_device_id.

pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with
const pci_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Arvind Yadav and committed by
Dave Airlie
75383dd3 f2149f0a

+1 -1
+1 -1
drivers/char/agp/amd64-agp.c
··· 610 610 611 611 #endif /* CONFIG_PM */ 612 612 613 - static struct pci_device_id agp_amd64_pci_table[] = { 613 + static const struct pci_device_id agp_amd64_pci_table[] = { 614 614 { 615 615 .class = (PCI_CLASS_BRIDGE_HOST << 8), 616 616 .class_mask = ~0,