Skip to content

Commit b48194b

Browse files
Ben CollinsDavid S. Miller
authored andcommitted
[SPARC]: Fix some section mismatch warnings in sparc drivers.
Signed-off-by: Ben Collins <ben.collins@ubuntu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5aee87c commit b48194b

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎drivers/net/myri_code.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* This is the Myrinet MCP code for LANai4.x */
22
/* Generated by cat $MYRI_HOME/lib/lanai/mcp4.dat > myri_code4.h */
33

4-
static unsigned int lanai4_code_off = 0x0000; /* half-word offset */
5-
static unsigned char lanai4_code[76256] __initdata = {
4+
static unsigned int __devinitdata lanai4_code_off = 0x0000; /* half-word offset */
5+
static unsigned char __devinitdata lanai4_code[76256] = {
66
0xF2,0x0E,
77
0xFE,0x00, 0xC2,0x90, 0x00,0x00, 0x07,0x88, 0x00,0x08, 0xE0,0x01, 0x01,0x4C, 0x97,0x93,
88
0xFF,0xFC, 0xE0,0x00, 0x00,0x14, 0x00,0x00, 0x00,0x01, 0x00,0x00, 0x00,0x00, 0x92,0x93,
@@ -4774,8 +4774,8 @@ static unsigned char lanai4_code[76256] __initdata = {
47744774

47754775
/* This is the LANai data */
47764776

4777-
static unsigned int lanai4_data_off = 0x94F0; /* half-word offset */
4778-
static unsigned char lanai4_data[20472] __initdata;
4777+
static unsigned int __devinitdata lanai4_data_off = 0x94F0; /* half-word offset */
4778+
static unsigned char __devinitdata lanai4_data[20472];
47794779

47804780

47814781
#ifdef SYMBOL_DEFINES_COMPILED

‎drivers/net/myri_sbus.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static int myri_do_handshake(struct myri_eth *mp)
168168
return 0;
169169
}
170170

171-
static int myri_load_lanai(struct myri_eth *mp)
171+
static int __devinit myri_load_lanai(struct myri_eth *mp)
172172
{
173173
struct net_device *dev = mp->dev;
174174
struct myri_shmem __iomem *shmem = mp->shmem;
@@ -891,7 +891,7 @@ static void dump_eeprom(struct myri_eth *mp)
891891
}
892892
#endif
893893

894-
static int __init myri_ether_init(struct sbus_dev *sdev)
894+
static int __devinit myri_ether_init(struct sbus_dev *sdev)
895895
{
896896
static int num;
897897
static unsigned version_printed;

‎drivers/net/sunbmac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define DRV_RELDATE "11/24/03"
4343
#define DRV_AUTHOR "David S. Miller (davem@redhat.com)"
4444

45-
static char version[] __initdata =
45+
static char version[] =
4646
DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " " DRV_AUTHOR "\n";
4747

4848
MODULE_VERSION(DRV_VERSION);

‎drivers/scsi/qlogicpti.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static int qlogicpti_reset_hardware(struct Scsi_Host *host)
461461

462462
#define PTI_RESET_LIMIT 400
463463

464-
static int __init qlogicpti_load_firmware(struct qlogicpti *qpti)
464+
static int __devinit qlogicpti_load_firmware(struct qlogicpti *qpti)
465465
{
466466
struct Scsi_Host *host = qpti->qhost;
467467
unsigned short csum = 0;

‎drivers/scsi/qlogicpti_asm.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Version 1.31.00 ISP1000 Initiator RISC firmware */
2-
unsigned short sbus_risc_code01[] __initdata = {
2+
unsigned short sbus_risc_code01[] __devinitdata = {
33
0x0078, 0x1030, 0x0000, 0x2419, 0x0000, 0x12ff, 0x2043, 0x4f50,
44
0x5952, 0x4947, 0x4854, 0x2031, 0x3939, 0x312c, 0x3139, 0x3932,
55
0x2c31, 0x3939, 0x332c, 0x3139, 0x3934, 0x2051, 0x4c4f, 0x4749,
@@ -1157,4 +1157,4 @@ unsigned short sbus_risc_code01[] __initdata = {
11571157
0x003c, 0x0040, 0x3415, 0x2019, 0x2626, 0x7b22, 0x7b26, 0x007c,
11581158
0x92a7
11591159
};
1160-
unsigned short sbus_risc_code_length01 = 0x2419;
1160+
unsigned short __devinitdata sbus_risc_code_length01 = 0x2419;

0 commit comments

Comments
 (0)