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

agp: uninorth: 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
ba67a31a c27668ba

+1 -1
+1 -1
drivers/char/agp/uninorth-agp.c
··· 679 679 agp_put_bridge(bridge); 680 680 } 681 681 682 - static struct pci_device_id agp_uninorth_pci_table[] = { 682 + static const struct pci_device_id agp_uninorth_pci_table[] = { 683 683 { 684 684 .class = (PCI_CLASS_BRIDGE_HOST << 8), 685 685 .class_mask = ~0,