aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index ea6e6b73f494..58ab3f4fa5f3 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -145,7 +145,7 @@ static DEFINE_PCI_DEVICE_TABLE(bnx2_pci_tbl) = {
145 { 0, } 145 { 0, }
146}; 146};
147 147
148static struct flash_spec flash_table[] = 148static const struct flash_spec flash_table[] =
149{ 149{
150#define BUFFERED_FLAGS (BNX2_NV_BUFFERED | BNX2_NV_TRANSLATE) 150#define BUFFERED_FLAGS (BNX2_NV_BUFFERED | BNX2_NV_TRANSLATE)
151#define NONBUFFERED_FLAGS (BNX2_NV_WREN) 151#define NONBUFFERED_FLAGS (BNX2_NV_WREN)
@@ -234,7 +234,7 @@ static struct flash_spec flash_table[] =
234 "Buffered flash (256kB)"}, 234 "Buffered flash (256kB)"},
235}; 235};
236 236
237static struct flash_spec flash_5709 = { 237static const struct flash_spec flash_5709 = {
238 .flags = BNX2_NV_BUFFERED, 238 .flags = BNX2_NV_BUFFERED,
239 .page_bits = BCM5709_FLASH_PAGE_BITS, 239 .page_bits = BCM5709_FLASH_PAGE_BITS,
240 .page_size = BCM5709_FLASH_PAGE_SIZE, 240 .page_size = BCM5709_FLASH_PAGE_SIZE,
@@ -4227,7 +4227,7 @@ bnx2_init_nvram(struct bnx2 *bp)
4227{ 4227{
4228 u32 val; 4228 u32 val;
4229 int j, entry_count, rc = 0; 4229 int j, entry_count, rc = 0;
4230 struct flash_spec *flash; 4230 const struct flash_spec *flash;
4231 4231
4232 if (CHIP_NUM(bp) == CHIP_NUM_5709) { 4232 if (CHIP_NUM(bp) == CHIP_NUM_5709) {
4233 bp->flash_info = &flash_5709; 4233 bp->flash_info = &flash_5709;