aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/bw2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/bw2.c')
-rw-r--r--drivers/video/bw2.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c
index 6bea9a936798..60017fc634b5 100644
--- a/drivers/video/bw2.c
+++ b/drivers/video/bw2.c
@@ -179,7 +179,7 @@ static int bw2_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
179 * Initialisation 179 * Initialisation
180 */ 180 */
181 181
182static void __devinit bw2_init_fix(struct fb_info *info, int linebytes) 182static void bw2_init_fix(struct fb_info *info, int linebytes)
183{ 183{
184 strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id)); 184 strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id));
185 185
@@ -191,44 +191,43 @@ static void __devinit bw2_init_fix(struct fb_info *info, int linebytes)
191 info->fix.accel = FB_ACCEL_SUN_BWTWO; 191 info->fix.accel = FB_ACCEL_SUN_BWTWO;
192} 192}
193 193
194static u8 bw2regs_1600[] __devinitdata = { 194static u8 bw2regs_1600[] = {
195 0x14, 0x8b, 0x15, 0x28, 0x16, 0x03, 0x17, 0x13, 195 0x14, 0x8b, 0x15, 0x28, 0x16, 0x03, 0x17, 0x13,
196 0x18, 0x7b, 0x19, 0x05, 0x1a, 0x34, 0x1b, 0x2e, 196 0x18, 0x7b, 0x19, 0x05, 0x1a, 0x34, 0x1b, 0x2e,
197 0x1c, 0x00, 0x1d, 0x0a, 0x1e, 0xff, 0x1f, 0x01, 197 0x1c, 0x00, 0x1d, 0x0a, 0x1e, 0xff, 0x1f, 0x01,
198 0x10, 0x21, 0 198 0x10, 0x21, 0
199}; 199};
200 200
201static u8 bw2regs_ecl[] __devinitdata = { 201static u8 bw2regs_ecl[] = {
202 0x14, 0x65, 0x15, 0x1e, 0x16, 0x04, 0x17, 0x0c, 202 0x14, 0x65, 0x15, 0x1e, 0x16, 0x04, 0x17, 0x0c,
203 0x18, 0x5e, 0x19, 0x03, 0x1a, 0xa7, 0x1b, 0x23, 203 0x18, 0x5e, 0x19, 0x03, 0x1a, 0xa7, 0x1b, 0x23,
204 0x1c, 0x00, 0x1d, 0x08, 0x1e, 0xff, 0x1f, 0x01, 204 0x1c, 0x00, 0x1d, 0x08, 0x1e, 0xff, 0x1f, 0x01,
205 0x10, 0x20, 0 205 0x10, 0x20, 0
206}; 206};
207 207
208static u8 bw2regs_analog[] __devinitdata = { 208static u8 bw2regs_analog[] = {
209 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x03, 0x17, 0x13, 209 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x03, 0x17, 0x13,
210 0x18, 0xb0, 0x19, 0x03, 0x1a, 0xa6, 0x1b, 0x22, 210 0x18, 0xb0, 0x19, 0x03, 0x1a, 0xa6, 0x1b, 0x22,
211 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 211 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
212 0x10, 0x20, 0 212 0x10, 0x20, 0
213}; 213};
214 214
215static u8 bw2regs_76hz[] __devinitdata = { 215static u8 bw2regs_76hz[] = {
216 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f, 216 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f,
217 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a, 217 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a,
218 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01, 218 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01,
219 0x10, 0x24, 0 219 0x10, 0x24, 0
220}; 220};
221 221
222static u8 bw2regs_66hz[] __devinitdata = { 222static u8 bw2regs_66hz[] = {
223 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14, 223 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14,
224 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24, 224 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24,
225 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 225 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
226 0x10, 0x20, 0 226 0x10, 0x20, 0
227}; 227};
228 228
229static int __devinit bw2_do_default_mode(struct bw2_par *par, 229static int bw2_do_default_mode(struct bw2_par *par, struct fb_info *info,
230 struct fb_info *info, 230 int *linebytes)
231 int *linebytes)
232{ 231{
233 u8 status, mon; 232 u8 status, mon;
234 u8 *p; 233 u8 *p;
@@ -273,7 +272,7 @@ static int __devinit bw2_do_default_mode(struct bw2_par *par,
273 return 0; 272 return 0;
274} 273}
275 274
276static int __devinit bw2_probe(struct platform_device *op) 275static int bw2_probe(struct platform_device *op)
277{ 276{
278 struct device_node *dp = op->dev.of_node; 277 struct device_node *dp = op->dev.of_node;
279 struct fb_info *info; 278 struct fb_info *info;
@@ -352,7 +351,7 @@ out_err:
352 return err; 351 return err;
353} 352}
354 353
355static int __devexit bw2_remove(struct platform_device *op) 354static int bw2_remove(struct platform_device *op)
356{ 355{
357 struct fb_info *info = dev_get_drvdata(&op->dev); 356 struct fb_info *info = dev_get_drvdata(&op->dev);
358 struct bw2_par *par = info->par; 357 struct bw2_par *par = info->par;
@@ -384,7 +383,7 @@ static struct platform_driver bw2_driver = {
384 .of_match_table = bw2_match, 383 .of_match_table = bw2_match,
385 }, 384 },
386 .probe = bw2_probe, 385 .probe = bw2_probe,
387 .remove = __devexit_p(bw2_remove), 386 .remove = bw2_remove,
388}; 387};
389 388
390static int __init bw2_init(void) 389static int __init bw2_init(void)