~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/video/acornfb.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 * have.  Allow 1% either way on the nominal for TVs.
67
67
 */
68
68
#define NR_MONTYPES     6
69
 
static struct fb_monspecs monspecs[NR_MONTYPES] __initdata = {
 
69
static struct fb_monspecs monspecs[NR_MONTYPES] __devinitdata = {
70
70
        {       /* TV           */
71
71
                .hfmin  = 15469,
72
72
                .hfmax  = 15781,
873
873
/*
874
874
 * Everything after here is initialisation!!!
875
875
 */
876
 
static struct fb_videomode modedb[] __initdata = {
 
876
static struct fb_videomode modedb[] __devinitdata = {
877
877
        {       /* 320x256 @ 50Hz */
878
878
                NULL, 50,  320,  256, 125000,  92,  62,  35, 19,  38, 2,
879
879
                FB_SYNC_COMP_HIGH_ACT,
925
925
        }
926
926
};
927
927
 
928
 
static struct fb_videomode __initdata
929
 
acornfb_default_mode = {
 
928
static struct fb_videomode acornfb_default_mode __devinitdata = {
930
929
        .name =         NULL,
931
930
        .refresh =      60,
932
931
        .xres =         640,
942
941
        .vmode =        FB_VMODE_NONINTERLACED
943
942
};
944
943
 
945
 
static void __init acornfb_init_fbinfo(void)
 
944
static void __devinit acornfb_init_fbinfo(void)
946
945
{
947
946
        static int first = 1;
948
947
 
1018
1017
 *      size can optionally be followed by 'M' or 'K' for
1019
1018
 *      MB or KB respectively.
1020
1019
 */
1021
 
static void __init
1022
 
acornfb_parse_mon(char *opt)
 
1020
static void __devinit acornfb_parse_mon(char *opt)
1023
1021
{
1024
1022
        char *p = opt;
1025
1023
 
1066
1064
        current_par.montype = -1;
1067
1065
}
1068
1066
 
1069
 
static void __init
1070
 
acornfb_parse_montype(char *opt)
 
1067
static void __devinit acornfb_parse_montype(char *opt)
1071
1068
{
1072
1069
        current_par.montype = -2;
1073
1070
 
1108
1105
        }
1109
1106
}
1110
1107
 
1111
 
static void __init
1112
 
acornfb_parse_dram(char *opt)
 
1108
static void __devinit acornfb_parse_dram(char *opt)
1113
1109
{
1114
1110
        unsigned int size;
1115
1111
 
1134
1130
static struct options {
1135
1131
        char *name;
1136
1132
        void (*parse)(char *opt);
1137
 
} opt_table[] __initdata = {
 
1133
} opt_table[] __devinitdata = {
1138
1134
        { "mon",     acornfb_parse_mon     },
1139
1135
        { "montype", acornfb_parse_montype },
1140
1136
        { "dram",    acornfb_parse_dram    },
1141
1137
        { NULL, NULL }
1142
1138
};
1143
1139
 
1144
 
int __init
1145
 
acornfb_setup(char *options)
 
1140
static int __devinit acornfb_setup(char *options)
1146
1141
{
1147
1142
        struct options *optp;
1148
1143
        char *opt;
1179
1174
 * Detect type of monitor connected
1180
1175
 *  For now, we just assume SVGA
1181
1176
 */
1182
 
static int __init
1183
 
acornfb_detect_monitortype(void)
 
1177
static int __devinit acornfb_detect_monitortype(void)
1184
1178
{
1185
1179
        return 4;
1186
1180
}