Commit 1ca97ab9 authored by Art Haas's avatar Art Haas Committed by Andy Grover

[PATCH] C99 designated initializers for drivers/char/agp

parent f6cb3993
......@@ -47,7 +47,7 @@ EXPORT_SYMBOL(agp_enable);
EXPORT_SYMBOL(agp_backend_acquire);
EXPORT_SYMBOL(agp_backend_release);
struct agp_bridge_data agp_bridge = { type: NOT_SUPPORTED };
struct agp_bridge_data agp_bridge = { .type = NOT_SUPPORTED };
static int agp_try_unsupported __initdata = 0;
int agp_memory_reserved;
......
......@@ -216,7 +216,7 @@ static void ali_destroy_page(void * addr)
/* Setup function */
static struct gatt_mask ali_generic_masks[] =
{
{mask: 0x00000000, type: 0}
{.mask = 0x00000000, .type = 0}
};
static struct aper_size_info_32 ali_generic_sizes[7] =
......
......@@ -370,7 +370,7 @@ static struct aper_size_info_lvl2 amd_irongate_sizes[7] =
static struct gatt_mask amd_irongate_masks[] =
{
{mask: 0x00000001, type: 0}
{.mask = 0x00000001, .type = 0}
};
int __init amd_irongate_setup (struct pci_dev *pdev)
......
......@@ -53,7 +53,7 @@ static struct aper_size_info_fixed hp_zx1_sizes[] =
static struct gatt_mask hp_zx1_masks[] =
{
{mask: HP_ZX1_PDIR_VALID_BIT, type: 0}
{.mask = HP_ZX1_PDIR_VALID_BIT, .type = 0}
};
static struct _hp_private {
......
......@@ -44,9 +44,9 @@ static struct aper_size_info_fixed intel_i810_sizes[] =
static struct gatt_mask intel_i810_masks[] =
{
{mask: I810_PTE_VALID, type: 0},
{mask: (I810_PTE_VALID | I810_PTE_LOCAL), type: AGP_DCACHE_MEMORY},
{mask: I810_PTE_VALID, type: 0}
{.mask = I810_PTE_VALID, .type = 0},
{.mask = (I810_PTE_VALID | I810_PTE_LOCAL), .type = AGP_DCACHE_MEMORY},
{.mask = I810_PTE_VALID, .type = 0}
};
static struct _intel_i810_private {
......
......@@ -427,7 +427,7 @@ static void intel_resume(void)
/* Setup function */
static struct gatt_mask intel_generic_masks[] =
{
{mask: 0x00000017, type: 0}
{.mask = 0x00000017, .type = 0}
};
static struct aper_size_info_8 intel_815_sizes[2] =
......
......@@ -106,7 +106,7 @@ static struct aper_size_info_8 sis_generic_sizes[7] =
static struct gatt_mask sis_generic_masks[] =
{
{mask: 0x00000000, type: 0}
{.mask = 0x00000000, .type = 0}
};
int __init sis_generic_setup (struct pci_dev *pdev)
......
......@@ -438,7 +438,7 @@ static int serverworks_remove_memory(agp_memory * mem, off_t pg_start,
static struct gatt_mask serverworks_masks[] =
{
{mask: 0x00000001, type: 0}
{.mask = 0x00000001, .type = 0}
};
static struct aper_size_info_lvl2 serverworks_sizes[7] =
......
......@@ -114,7 +114,7 @@ static struct aper_size_info_8 via_generic_sizes[7] =
static struct gatt_mask via_generic_masks[] =
{
{mask: 0x00000000, type: 0}
{.mask = 0x00000000, .type = 0}
};
int __init via_generic_setup (struct pci_dev *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment