diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-08-08 21:34:27 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-09-23 22:14:46 -0400 |
commit | f4ab2f7a21338ae0f59ad925c23545e790cd51e3 (patch) | |
tree | 3f08e11062c0b2be9f3c150a8b9ad667c0c1e0dd /drivers/video/via/dvi.c | |
parent | a54be174e425cb41eb774714d03ff98562ee0824 (diff) |
viafb: propagate __init and __devinit
There are a lot of init functions which are not marked as such.
Fix this.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Diffstat (limited to 'drivers/video/via/dvi.c')
-rw-r--r-- | drivers/video/via/dvi.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/video/via/dvi.c b/drivers/video/via/dvi.c index 92a2027593d3..ab6145da1a2f 100644 --- a/drivers/video/via/dvi.c +++ b/drivers/video/via/dvi.c | |||
@@ -25,10 +25,12 @@ | |||
25 | static void tmds_register_write(int index, u8 data); | 25 | static void tmds_register_write(int index, u8 data); |
26 | static int tmds_register_read(int index); | 26 | static int tmds_register_read(int index); |
27 | static int tmds_register_read_bytes(int index, u8 *buff, int buff_len); | 27 | static int tmds_register_read_bytes(int index, u8 *buff, int buff_len); |
28 | static void dvi_get_panel_size_from_DDCv1(struct tmds_chip_information | 28 | static void __devinit dvi_get_panel_size_from_DDCv1( |
29 | *tmds_chip, struct tmds_setting_information *tmds_setting); | 29 | struct tmds_chip_information *tmds_chip, |
30 | static void dvi_get_panel_size_from_DDCv2(struct tmds_chip_information | 30 | struct tmds_setting_information *tmds_setting); |
31 | *tmds_chip, struct tmds_setting_information *tmds_setting); | 31 | static void __devinit dvi_get_panel_size_from_DDCv2( |
32 | struct tmds_chip_information *tmds_chip, | ||
33 | struct tmds_setting_information *tmds_setting); | ||
32 | static int viafb_dvi_query_EDID(void); | 34 | static int viafb_dvi_query_EDID(void); |
33 | 35 | ||
34 | static int check_tmds_chip(int device_id_subaddr, int device_id) | 36 | static int check_tmds_chip(int device_id_subaddr, int device_id) |
@@ -39,7 +41,7 @@ static int check_tmds_chip(int device_id_subaddr, int device_id) | |||
39 | return FAIL; | 41 | return FAIL; |
40 | } | 42 | } |
41 | 43 | ||
42 | void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, | 44 | void __devinit viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, |
43 | struct tmds_setting_information *tmds_setting) | 45 | struct tmds_setting_information *tmds_setting) |
44 | { | 46 | { |
45 | DEBUG_MSG(KERN_INFO "viafb_init_dvi_size()\n"); | 47 | DEBUG_MSG(KERN_INFO "viafb_init_dvi_size()\n"); |
@@ -60,7 +62,7 @@ void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, | |||
60 | return; | 62 | return; |
61 | } | 63 | } |
62 | 64 | ||
63 | int viafb_tmds_trasmitter_identify(void) | 65 | int __devinit viafb_tmds_trasmitter_identify(void) |
64 | { | 66 | { |
65 | unsigned char sr2a = 0, sr1e = 0, sr3e = 0; | 67 | unsigned char sr2a = 0, sr1e = 0, sr3e = 0; |
66 | 68 | ||
@@ -311,8 +313,9 @@ static int viafb_dvi_query_EDID(void) | |||
311 | } | 313 | } |
312 | 314 | ||
313 | /* Get Panel Size Using EDID1 Table */ | 315 | /* Get Panel Size Using EDID1 Table */ |
314 | static void dvi_get_panel_size_from_DDCv1(struct tmds_chip_information | 316 | static void __devinit dvi_get_panel_size_from_DDCv1( |
315 | *tmds_chip, struct tmds_setting_information *tmds_setting) | 317 | struct tmds_chip_information *tmds_chip, |
318 | struct tmds_setting_information *tmds_setting) | ||
316 | { | 319 | { |
317 | int i, max_h = 0, tmp, restore; | 320 | int i, max_h = 0, tmp, restore; |
318 | unsigned char rData; | 321 | unsigned char rData; |
@@ -416,8 +419,9 @@ static void dvi_get_panel_size_from_DDCv1(struct tmds_chip_information | |||
416 | } | 419 | } |
417 | 420 | ||
418 | /* Get Panel Size Using EDID2 Table */ | 421 | /* Get Panel Size Using EDID2 Table */ |
419 | static void dvi_get_panel_size_from_DDCv2(struct tmds_chip_information | 422 | static void __devinit dvi_get_panel_size_from_DDCv2( |
420 | *tmds_chip, struct tmds_setting_information *tmds_setting) | 423 | struct tmds_chip_information *tmds_chip, |
424 | struct tmds_setting_information *tmds_setting) | ||
421 | { | 425 | { |
422 | int restore; | 426 | int restore; |
423 | unsigned char R_Buffer[2]; | 427 | unsigned char R_Buffer[2]; |