summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 14:16:24 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 14:16:24 +0000
commit48c7f1c089354a87f0f958a998cb07683d9b7f1f (patch)
tree4204242f9416b3035d18d9ccf25a135934817921 /sys/dev/pci/drm/radeon_drv.c
parent07aa3679fdeb673cb14f0be6158b4b65b15af43e (diff)
Sprinkle some const correctness for the pciid lists. From mickey ages
ago.
Diffstat (limited to 'sys/dev/pci/drm/radeon_drv.c')
-rw-r--r--sys/dev/pci/drm/radeon_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c
index 1561962b452..1677669fca5 100644
--- a/sys/dev/pci/drm/radeon_drv.c
+++ b/sys/dev/pci/drm/radeon_drv.c
@@ -41,7 +41,7 @@ int radeondrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *);
int radeon_no_wb;
-static drm_pci_id_list_t radeondrm_pciidlist[] = {
+const static drm_pci_id_list_t radeondrm_pciidlist[] = {
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_M241P,
CHIP_RV380|RADEON_IS_MOBILITY},
{PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_X300M24,
@@ -521,7 +521,7 @@ radeondrm_attach(struct device *parent, struct device *self, void *aux)
drm_radeon_private_t *dev_priv = (drm_radeon_private_t *)self;
struct pci_attach_args *pa = aux;
struct vga_pci_bar *bar;
- drm_pci_id_list_t *id_entry;
+ const drm_pci_id_list_t *id_entry;
int is_agp;
id_entry = drm_find_description(PCI_VENDOR(pa->pa_id),