diff options
Diffstat (limited to 'arch/mips/powertv')
-rw-r--r-- | arch/mips/powertv/asic/asic-calliope.c | 2 | ||||
-rw-r--r-- | arch/mips/powertv/asic/asic-cronus.c | 2 | ||||
-rw-r--r-- | arch/mips/powertv/asic/asic-gaia.c | 2 | ||||
-rw-r--r-- | arch/mips/powertv/asic/asic-zeus.c | 2 | ||||
-rw-r--r-- | arch/mips/powertv/powertv_setup.c | 6 |
5 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/powertv/asic/asic-calliope.c b/arch/mips/powertv/asic/asic-calliope.c index 0a170e0ffeaa..7773f3d956b0 100644 --- a/arch/mips/powertv/asic/asic-calliope.c +++ b/arch/mips/powertv/asic/asic-calliope.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #define CALLIOPE_ADDR(x) (CALLIOPE_IO_BASE + (x)) | 29 | #define CALLIOPE_ADDR(x) (CALLIOPE_IO_BASE + (x)) |
30 | 30 | ||
31 | const struct register_map calliope_register_map __initdata = { | 31 | const struct register_map calliope_register_map __initconst = { |
32 | .eic_slow0_strt_add = {.phys = CALLIOPE_ADDR(0x800000)}, | 32 | .eic_slow0_strt_add = {.phys = CALLIOPE_ADDR(0x800000)}, |
33 | .eic_cfg_bits = {.phys = CALLIOPE_ADDR(0x800038)}, | 33 | .eic_cfg_bits = {.phys = CALLIOPE_ADDR(0x800038)}, |
34 | .eic_ready_status = {.phys = CALLIOPE_ADDR(0x80004c)}, | 34 | .eic_ready_status = {.phys = CALLIOPE_ADDR(0x80004c)}, |
diff --git a/arch/mips/powertv/asic/asic-cronus.c b/arch/mips/powertv/asic/asic-cronus.c index bbc0c122be5e..da076db7b7ed 100644 --- a/arch/mips/powertv/asic/asic-cronus.c +++ b/arch/mips/powertv/asic/asic-cronus.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #define CRONUS_ADDR(x) (CRONUS_IO_BASE + (x)) | 29 | #define CRONUS_ADDR(x) (CRONUS_IO_BASE + (x)) |
30 | 30 | ||
31 | const struct register_map cronus_register_map __initdata = { | 31 | const struct register_map cronus_register_map __initconst = { |
32 | .eic_slow0_strt_add = {.phys = CRONUS_ADDR(0x000000)}, | 32 | .eic_slow0_strt_add = {.phys = CRONUS_ADDR(0x000000)}, |
33 | .eic_cfg_bits = {.phys = CRONUS_ADDR(0x000038)}, | 33 | .eic_cfg_bits = {.phys = CRONUS_ADDR(0x000038)}, |
34 | .eic_ready_status = {.phys = CRONUS_ADDR(0x00004C)}, | 34 | .eic_ready_status = {.phys = CRONUS_ADDR(0x00004C)}, |
diff --git a/arch/mips/powertv/asic/asic-gaia.c b/arch/mips/powertv/asic/asic-gaia.c index 91dda682752c..47683b370e74 100644 --- a/arch/mips/powertv/asic/asic-gaia.c +++ b/arch/mips/powertv/asic/asic-gaia.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <asm/mach-powertv/asic.h> | 24 | #include <asm/mach-powertv/asic.h> |
25 | 25 | ||
26 | const struct register_map gaia_register_map __initdata = { | 26 | const struct register_map gaia_register_map __initconst = { |
27 | .eic_slow0_strt_add = {.phys = GAIA_IO_BASE + 0x000000}, | 27 | .eic_slow0_strt_add = {.phys = GAIA_IO_BASE + 0x000000}, |
28 | .eic_cfg_bits = {.phys = GAIA_IO_BASE + 0x000038}, | 28 | .eic_cfg_bits = {.phys = GAIA_IO_BASE + 0x000038}, |
29 | .eic_ready_status = {.phys = GAIA_IO_BASE + 0x00004C}, | 29 | .eic_ready_status = {.phys = GAIA_IO_BASE + 0x00004C}, |
diff --git a/arch/mips/powertv/asic/asic-zeus.c b/arch/mips/powertv/asic/asic-zeus.c index 4a05bb096476..6ff4b10f09da 100644 --- a/arch/mips/powertv/asic/asic-zeus.c +++ b/arch/mips/powertv/asic/asic-zeus.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #define ZEUS_ADDR(x) (ZEUS_IO_BASE + (x)) | 29 | #define ZEUS_ADDR(x) (ZEUS_IO_BASE + (x)) |
30 | 30 | ||
31 | const struct register_map zeus_register_map __initdata = { | 31 | const struct register_map zeus_register_map __initconst = { |
32 | .eic_slow0_strt_add = {.phys = ZEUS_ADDR(0x000000)}, | 32 | .eic_slow0_strt_add = {.phys = ZEUS_ADDR(0x000000)}, |
33 | .eic_cfg_bits = {.phys = ZEUS_ADDR(0x000038)}, | 33 | .eic_cfg_bits = {.phys = ZEUS_ADDR(0x000038)}, |
34 | .eic_ready_status = {.phys = ZEUS_ADDR(0x00004c)}, | 34 | .eic_ready_status = {.phys = ZEUS_ADDR(0x00004c)}, |
diff --git a/arch/mips/powertv/powertv_setup.c b/arch/mips/powertv/powertv_setup.c index 3933c373a438..820b8480f222 100644 --- a/arch/mips/powertv/powertv_setup.c +++ b/arch/mips/powertv/powertv_setup.c | |||
@@ -254,7 +254,7 @@ early_param("rfmac", rfmac_param); | |||
254 | * Generates an Ethernet MAC address that is highly likely to be unique for | 254 | * Generates an Ethernet MAC address that is highly likely to be unique for |
255 | * this particular system on a network with other systems of the same type. | 255 | * this particular system on a network with other systems of the same type. |
256 | * | 256 | * |
257 | * The problem we are solving is that, when random_ether_addr() is used to | 257 | * The problem we are solving is that, when eth_random_addr() is used to |
258 | * generate MAC addresses at startup, there isn't much entropy for the random | 258 | * generate MAC addresses at startup, there isn't much entropy for the random |
259 | * number generator to use and the addresses it produces are fairly likely to | 259 | * number generator to use and the addresses it produces are fairly likely to |
260 | * be the same as those of other identical systems on the same local network. | 260 | * be the same as those of other identical systems on the same local network. |
@@ -269,7 +269,7 @@ early_param("rfmac", rfmac_param); | |||
269 | * Still, this does give us something to work with. | 269 | * Still, this does give us something to work with. |
270 | * | 270 | * |
271 | * The approach we take is: | 271 | * The approach we take is: |
272 | * 1. If we can't get the RF MAC Address, just call random_ether_addr. | 272 | * 1. If we can't get the RF MAC Address, just call eth_random_addr. |
273 | * 2. Use the 24-bit NIC-specific bits of the RF MAC address as the last 24 | 273 | * 2. Use the 24-bit NIC-specific bits of the RF MAC address as the last 24 |
274 | * bits of the new address. This is very likely to be unique, except for | 274 | * bits of the new address. This is very likely to be unique, except for |
275 | * the current box. | 275 | * the current box. |
@@ -299,7 +299,7 @@ void platform_random_ether_addr(u8 addr[ETH_ALEN]) | |||
299 | if (!have_rfmac) { | 299 | if (!have_rfmac) { |
300 | pr_warning("rfmac not available on command line; " | 300 | pr_warning("rfmac not available on command line; " |
301 | "generating random MAC address\n"); | 301 | "generating random MAC address\n"); |
302 | random_ether_addr(addr); | 302 | eth_random_addr(addr); |
303 | } | 303 | } |
304 | 304 | ||
305 | else { | 305 | else { |