aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:07:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit48c68c4f1b542444f175a9e136febcecf3e704d8 (patch)
treed28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/console
parent8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (diff)
Drivers: video: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/console')
-rw-r--r--drivers/video/console/sticore.c83
1 files changed, 37 insertions, 46 deletions
diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c
index 39571f9e0162..35687fd56456 100644
--- a/drivers/video/console/sticore.c
+++ b/drivers/video/console/sticore.c
@@ -238,8 +238,7 @@ static void sti_flush(unsigned long start, unsigned long end)
238 flush_icache_range(start, end); 238 flush_icache_range(start, end);
239} 239}
240 240
241static void __devinit sti_rom_copy(unsigned long base, unsigned long count, 241static void sti_rom_copy(unsigned long base, unsigned long count, void *dest)
242 void *dest)
243{ 242{
244 unsigned long dest_start = (unsigned long) dest; 243 unsigned long dest_start = (unsigned long) dest;
245 244
@@ -266,7 +265,7 @@ static void __devinit sti_rom_copy(unsigned long base, unsigned long count,
266static char default_sti_path[21] __read_mostly; 265static char default_sti_path[21] __read_mostly;
267 266
268#ifndef MODULE 267#ifndef MODULE
269static int __devinit sti_setup(char *str) 268static int sti_setup(char *str)
270{ 269{
271 if (str) 270 if (str)
272 strlcpy (default_sti_path, str, sizeof (default_sti_path)); 271 strlcpy (default_sti_path, str, sizeof (default_sti_path));
@@ -285,12 +284,12 @@ __setup("sti=", sti_setup);
285 284
286 285
287 286
288static char __devinitdata *font_name[MAX_STI_ROMS] = { "VGA8x16", }; 287static char *font_name[MAX_STI_ROMS] = { "VGA8x16", };
289static int __devinitdata font_index[MAX_STI_ROMS], 288static int font_index[MAX_STI_ROMS],
290 font_height[MAX_STI_ROMS], 289 font_height[MAX_STI_ROMS],
291 font_width[MAX_STI_ROMS]; 290 font_width[MAX_STI_ROMS];
292#ifndef MODULE 291#ifndef MODULE
293static int __devinit sti_font_setup(char *str) 292static int sti_font_setup(char *str)
294{ 293{
295 char *x; 294 char *x;
296 int i = 0; 295 int i = 0;
@@ -343,8 +342,8 @@ __setup("sti_font=", sti_font_setup);
343 342
344 343
345 344
346static void __devinit 345static void sti_dump_globcfg(struct sti_glob_cfg *glob_cfg,
347sti_dump_globcfg(struct sti_glob_cfg *glob_cfg, unsigned int sti_mem_request) 346 unsigned int sti_mem_request)
348{ 347{
349 struct sti_glob_cfg_ext *cfg; 348 struct sti_glob_cfg_ext *cfg;
350 349
@@ -383,8 +382,7 @@ sti_dump_globcfg(struct sti_glob_cfg *glob_cfg, unsigned int sti_mem_request)
383 cfg->sti_mem_addr, sti_mem_request)); 382 cfg->sti_mem_addr, sti_mem_request));
384} 383}
385 384
386static void __devinit 385static void sti_dump_outptr(struct sti_struct *sti)
387sti_dump_outptr(struct sti_struct *sti)
388{ 386{
389 DPRINTK((KERN_INFO 387 DPRINTK((KERN_INFO
390 "%d bits per pixel\n" 388 "%d bits per pixel\n"
@@ -397,9 +395,8 @@ sti_dump_outptr(struct sti_struct *sti)
397 sti->outptr.attributes)); 395 sti->outptr.attributes));
398} 396}
399 397
400static int __devinit 398static int sti_init_glob_cfg(struct sti_struct *sti, unsigned long rom_address,
401sti_init_glob_cfg(struct sti_struct *sti, 399 unsigned long hpa)
402 unsigned long rom_address, unsigned long hpa)
403{ 400{
404 struct sti_glob_cfg *glob_cfg; 401 struct sti_glob_cfg *glob_cfg;
405 struct sti_glob_cfg_ext *glob_cfg_ext; 402 struct sti_glob_cfg_ext *glob_cfg_ext;
@@ -479,8 +476,8 @@ sti_init_glob_cfg(struct sti_struct *sti,
479} 476}
480 477
481#ifdef CONFIG_FB 478#ifdef CONFIG_FB
482static struct sti_cooked_font __devinit 479static struct sti_cooked_font *
483*sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 480sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name)
484{ 481{
485 const struct font_desc *fbfont; 482 const struct font_desc *fbfont;
486 unsigned int size, bpc; 483 unsigned int size, bpc;
@@ -535,16 +532,15 @@ static struct sti_cooked_font __devinit
535 return cooked_font; 532 return cooked_font;
536} 533}
537#else 534#else
538static struct sti_cooked_font __devinit 535static struct sti_cooked_font *
539*sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 536sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name)
540{ 537{
541 return NULL; 538 return NULL;
542} 539}
543#endif 540#endif
544 541
545static struct sti_cooked_font __devinit 542static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom,
546*sti_select_font(struct sti_cooked_rom *rom, 543 int (*search_font_fnc)(struct sti_cooked_rom *, int, int))
547 int (*search_font_fnc)(struct sti_cooked_rom *, int, int))
548{ 544{
549 struct sti_cooked_font *font; 545 struct sti_cooked_font *font;
550 int i; 546 int i;
@@ -569,8 +565,7 @@ static struct sti_cooked_font __devinit
569} 565}
570 566
571 567
572static void __devinit 568static void sti_dump_rom(struct sti_rom *rom)
573sti_dump_rom(struct sti_rom *rom)
574{ 569{
575 printk(KERN_INFO " id %04x-%04x, conforms to spec rev. %d.%02x\n", 570 printk(KERN_INFO " id %04x-%04x, conforms to spec rev. %d.%02x\n",
576 rom->graphics_id[0], 571 rom->graphics_id[0],
@@ -587,9 +582,8 @@ sti_dump_rom(struct sti_rom *rom)
587} 582}
588 583
589 584
590static int __devinit 585static int sti_cook_fonts(struct sti_cooked_rom *cooked_rom,
591sti_cook_fonts(struct sti_cooked_rom *cooked_rom, 586 struct sti_rom *raw_rom)
592 struct sti_rom *raw_rom)
593{ 587{
594 struct sti_rom_font *raw_font, *font_start; 588 struct sti_rom_font *raw_font, *font_start;
595 struct sti_cooked_font *cooked_font; 589 struct sti_cooked_font *cooked_font;
@@ -622,8 +616,7 @@ sti_cook_fonts(struct sti_cooked_rom *cooked_rom,
622} 616}
623 617
624 618
625static int __devinit 619static int sti_search_font(struct sti_cooked_rom *rom, int height, int width)
626sti_search_font(struct sti_cooked_rom *rom, int height, int width)
627{ 620{
628 struct sti_cooked_font *font; 621 struct sti_cooked_font *font;
629 int i = 0; 622 int i = 0;
@@ -639,8 +632,7 @@ sti_search_font(struct sti_cooked_rom *rom, int height, int width)
639#define BMODE_RELOCATE(offset) offset = (offset) / 4; 632#define BMODE_RELOCATE(offset) offset = (offset) / 4;
640#define BMODE_LAST_ADDR_OFFS 0x50 633#define BMODE_LAST_ADDR_OFFS 0x50
641 634
642static void * __devinit 635static void *sti_bmode_font_raw(struct sti_cooked_font *f)
643sti_bmode_font_raw(struct sti_cooked_font *f)
644{ 636{
645 unsigned char *n, *p, *q; 637 unsigned char *n, *p, *q;
646 int size = f->raw->bytes_per_char*256+sizeof(struct sti_rom_font); 638 int size = f->raw->bytes_per_char*256+sizeof(struct sti_rom_font);
@@ -657,8 +649,8 @@ sti_bmode_font_raw(struct sti_cooked_font *f)
657 return n + 3; 649 return n + 3;
658} 650}
659 651
660static void __devinit 652static void sti_bmode_rom_copy(unsigned long base, unsigned long count,
661sti_bmode_rom_copy(unsigned long base, unsigned long count, void *dest) 653 void *dest)
662{ 654{
663 unsigned long dest_start = (unsigned long) dest; 655 unsigned long dest_start = (unsigned long) dest;
664 656
@@ -672,8 +664,7 @@ sti_bmode_rom_copy(unsigned long base, unsigned long count, void *dest)
672 sti_flush(dest_start, (unsigned long)dest); 664 sti_flush(dest_start, (unsigned long)dest);
673} 665}
674 666
675static struct sti_rom * __devinit 667static struct sti_rom *sti_get_bmode_rom (unsigned long address)
676sti_get_bmode_rom (unsigned long address)
677{ 668{
678 struct sti_rom *raw; 669 struct sti_rom *raw;
679 u32 size; 670 u32 size;
@@ -708,7 +699,7 @@ sti_get_bmode_rom (unsigned long address)
708 return raw; 699 return raw;
709} 700}
710 701
711static struct sti_rom __devinit *sti_get_wmode_rom(unsigned long address) 702static struct sti_rom *sti_get_wmode_rom(unsigned long address)
712{ 703{
713 struct sti_rom *raw; 704 struct sti_rom *raw;
714 unsigned long size; 705 unsigned long size;
@@ -723,8 +714,8 @@ static struct sti_rom __devinit *sti_get_wmode_rom(unsigned long address)
723 return raw; 714 return raw;
724} 715}
725 716
726static int __devinit sti_read_rom(int wordmode, struct sti_struct *sti, 717static int sti_read_rom(int wordmode, struct sti_struct *sti,
727 unsigned long address) 718 unsigned long address)
728{ 719{
729 struct sti_cooked_rom *cooked; 720 struct sti_cooked_rom *cooked;
730 struct sti_rom *raw = NULL; 721 struct sti_rom *raw = NULL;
@@ -806,8 +797,9 @@ out_err:
806 return 0; 797 return 0;
807} 798}
808 799
809static struct sti_struct * __devinit 800static struct sti_struct *sti_try_rom_generic(unsigned long address,
810sti_try_rom_generic(unsigned long address, unsigned long hpa, struct pci_dev *pd) 801 unsigned long hpa,
802 struct pci_dev *pd)
811{ 803{
812 struct sti_struct *sti; 804 struct sti_struct *sti;
813 int ok; 805 int ok;
@@ -921,7 +913,7 @@ out_err:
921 return NULL; 913 return NULL;
922} 914}
923 915
924static void __devinit sticore_check_for_default_sti(struct sti_struct *sti, char *path) 916static void sticore_check_for_default_sti(struct sti_struct *sti, char *path)
925{ 917{
926 if (strcmp (path, default_sti_path) == 0) 918 if (strcmp (path, default_sti_path) == 0)
927 default_sti = sti; 919 default_sti = sti;
@@ -932,7 +924,7 @@ static void __devinit sticore_check_for_default_sti(struct sti_struct *sti, char
932 * in the additional address field addr[1] while on 924 * in the additional address field addr[1] while on
933 * older Systems the PDC stores it in page0->proc_sti 925 * older Systems the PDC stores it in page0->proc_sti
934 */ 926 */
935static int __devinit sticore_pa_init(struct parisc_device *dev) 927static int sticore_pa_init(struct parisc_device *dev)
936{ 928{
937 char pa_path[21]; 929 char pa_path[21];
938 struct sti_struct *sti = NULL; 930 struct sti_struct *sti = NULL;
@@ -953,8 +945,7 @@ static int __devinit sticore_pa_init(struct parisc_device *dev)
953} 945}
954 946
955 947
956static int __devinit sticore_pci_init(struct pci_dev *pd, 948static int sticore_pci_init(struct pci_dev *pd, const struct pci_device_id *ent)
957 const struct pci_device_id *ent)
958{ 949{
959#ifdef CONFIG_PCI 950#ifdef CONFIG_PCI
960 unsigned long fb_base, rom_base; 951 unsigned long fb_base, rom_base;
@@ -1001,7 +992,7 @@ static int __devinit sticore_pci_init(struct pci_dev *pd,
1001} 992}
1002 993
1003 994
1004static void __devexit sticore_pci_remove(struct pci_dev *pd) 995static void sticore_pci_remove(struct pci_dev *pd)
1005{ 996{
1006 BUG(); 997 BUG();
1007} 998}
@@ -1043,7 +1034,7 @@ static struct parisc_driver pa_sti_driver = {
1043 1034
1044static int sticore_initialized __read_mostly; 1035static int sticore_initialized __read_mostly;
1045 1036
1046static void __devinit sti_init_roms(void) 1037static void sti_init_roms(void)
1047{ 1038{
1048 if (sticore_initialized) 1039 if (sticore_initialized)
1049 return; 1040 return;