Skip to content

Commit 63abdcd

Browse files
IOBYTEDavid S. Miller
authored andcommitted
[BW2]: Fix section mismatch warnings.
Fix section mismatch warnings by moving data into __devinitdata section. Add __devinit to two initialization functions. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8fdab47 commit 63abdcd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/video/bw2.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ static int bw2_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
186186
* Initialisation
187187
*/
188188

189-
static void
190-
bw2_init_fix(struct fb_info *info, int linebytes)
189+
static void __devinit bw2_init_fix(struct fb_info *info, int linebytes)
191190
{
192191
strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id));
193192

@@ -199,43 +198,44 @@ bw2_init_fix(struct fb_info *info, int linebytes)
199198
info->fix.accel = FB_ACCEL_SUN_BWTWO;
200199
}
201200

202-
static u8 bw2regs_1600[] __initdata = {
201+
static u8 bw2regs_1600[] __devinitdata = {
203202
0x14, 0x8b, 0x15, 0x28, 0x16, 0x03, 0x17, 0x13,
204203
0x18, 0x7b, 0x19, 0x05, 0x1a, 0x34, 0x1b, 0x2e,
205204
0x1c, 0x00, 0x1d, 0x0a, 0x1e, 0xff, 0x1f, 0x01,
206205
0x10, 0x21, 0
207206
};
208207

209-
static u8 bw2regs_ecl[] __initdata = {
208+
static u8 bw2regs_ecl[] __devinitdata = {
210209
0x14, 0x65, 0x15, 0x1e, 0x16, 0x04, 0x17, 0x0c,
211210
0x18, 0x5e, 0x19, 0x03, 0x1a, 0xa7, 0x1b, 0x23,
212211
0x1c, 0x00, 0x1d, 0x08, 0x1e, 0xff, 0x1f, 0x01,
213212
0x10, 0x20, 0
214213
};
215214

216-
static u8 bw2regs_analog[] __initdata = {
215+
static u8 bw2regs_analog[] __devinitdata = {
217216
0x14, 0xbb, 0x15, 0x2b, 0x16, 0x03, 0x17, 0x13,
218217
0x18, 0xb0, 0x19, 0x03, 0x1a, 0xa6, 0x1b, 0x22,
219218
0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
220219
0x10, 0x20, 0
221220
};
222221

223-
static u8 bw2regs_76hz[] __initdata = {
222+
static u8 bw2regs_76hz[] __devinitdata = {
224223
0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f,
225224
0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a,
226225
0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01,
227226
0x10, 0x24, 0
228227
};
229228

230-
static u8 bw2regs_66hz[] __initdata = {
229+
static u8 bw2regs_66hz[] __devinitdata = {
231230
0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14,
232231
0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24,
233232
0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
234233
0x10, 0x20, 0
235234
};
236235

237-
static void bw2_do_default_mode(struct bw2_par *par, struct fb_info *info,
238-
int *linebytes)
236+
static void __devinit bw2_do_default_mode(struct bw2_par *par,
237+
struct fb_info *info,
238+
int *linebytes)
239239
{
240240
u8 status, mon;
241241
u8 *p;

0 commit comments

Comments
 (0)