aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fm2fb.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-01-03 19:17:50 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-03 19:17:50 -0500
commit49569646b2413ee1a4fb7c4537fca058ac22292e (patch)
tree41b8bc72975610295c2e4cf9318478272c667c75 /drivers/video/fm2fb.c
parent5f738967e89584f99c6a11c6bf09b16c50b6a03e (diff)
parent6ae141718e3f9c7e2c620e999c86612a7f415bb1 (diff)
Merge tag 'driver-core-3.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core __dev* removal patches - take 3 - from Greg Kroah-Hartman: "Here are the remaining __dev* removal patches against the 3.8-rc2 tree. All of these patches were previously sent to the subsystem maintainers, most of them were picked up and pushed to you, but there were a number that fell through the cracks, and new drivers were added during the merge window, so this series cleans up the rest of the instances of these markings. Third time's the charm... Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" Fixed up trivial conflict with the pinctrl pull in pinctrl-sirf.c. * tag 'driver-core-3.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (54 commits) misc: remove __dev* attributes. include: remove __dev* attributes. Documentation: remove __dev* attributes. Drivers: misc: remove __dev* attributes. Drivers: block: remove __dev* attributes. Drivers: bcma: remove __dev* attributes. Drivers: char: remove __dev* attributes. Drivers: clocksource: remove __dev* attributes. Drivers: ssb: remove __dev* attributes. Drivers: dma: remove __dev* attributes. Drivers: gpu: remove __dev* attributes. Drivers: infinband: remove __dev* attributes. Drivers: memory: remove __dev* attributes. Drivers: mmc: remove __dev* attributes. Drivers: iommu: remove __dev* attributes. Drivers: power: remove __dev* attributes. Drivers: message: remove __dev* attributes. Drivers: macintosh: remove __dev* attributes. Drivers: mfd: remove __dev* attributes. pstore: remove __dev* attributes. ...
Diffstat (limited to 'drivers/video/fm2fb.c')
-rw-r--r--drivers/video/fm2fb.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/video/fm2fb.c b/drivers/video/fm2fb.c
index d0533b7aad79..c99c9671302b 100644
--- a/drivers/video/fm2fb.c
+++ b/drivers/video/fm2fb.c
@@ -127,7 +127,7 @@
127 127
128static volatile unsigned char *fm2fb_reg; 128static volatile unsigned char *fm2fb_reg;
129 129
130static struct fb_fix_screeninfo fb_fix __devinitdata = { 130static struct fb_fix_screeninfo fb_fix = {
131 .smem_len = FRAMEMASTER_REG, 131 .smem_len = FRAMEMASTER_REG,
132 .type = FB_TYPE_PACKED_PIXELS, 132 .type = FB_TYPE_PACKED_PIXELS,
133 .visual = FB_VISUAL_TRUECOLOR, 133 .visual = FB_VISUAL_TRUECOLOR,
@@ -136,12 +136,12 @@ static struct fb_fix_screeninfo fb_fix __devinitdata = {
136 .accel = FB_ACCEL_NONE, 136 .accel = FB_ACCEL_NONE,
137}; 137};
138 138
139static int fm2fb_mode __devinitdata = -1; 139static int fm2fb_mode = -1;
140 140
141#define FM2FB_MODE_PAL 0 141#define FM2FB_MODE_PAL 0
142#define FM2FB_MODE_NTSC 1 142#define FM2FB_MODE_NTSC 1
143 143
144static struct fb_var_screeninfo fb_var_modes[] __devinitdata = { 144static struct fb_var_screeninfo fb_var_modes[] = {
145 { 145 {
146 /* 768 x 576, 32 bpp (PAL) */ 146 /* 768 x 576, 32 bpp (PAL) */
147 768, 576, 768, 576, 0, 0, 32, 0, 147 768, 576, 768, 576, 0, 0, 32, 0,
@@ -211,10 +211,9 @@ static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
211 * Initialisation 211 * Initialisation
212 */ 212 */
213 213
214static int __devinit fm2fb_probe(struct zorro_dev *z, 214static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id);
215 const struct zorro_device_id *id);
216 215
217static struct zorro_device_id fm2fb_devices[] __devinitdata = { 216static struct zorro_device_id fm2fb_devices[] = {
218 { ZORRO_PROD_BSC_FRAMEMASTER_II }, 217 { ZORRO_PROD_BSC_FRAMEMASTER_II },
219 { ZORRO_PROD_HELFRICH_RAINBOW_II }, 218 { ZORRO_PROD_HELFRICH_RAINBOW_II },
220 { 0 } 219 { 0 }
@@ -227,8 +226,7 @@ static struct zorro_driver fm2fb_driver = {
227 .probe = fm2fb_probe, 226 .probe = fm2fb_probe,
228}; 227};
229 228
230static int __devinit fm2fb_probe(struct zorro_dev *z, 229static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)
231 const struct zorro_device_id *id)
232{ 230{
233 struct fb_info *info; 231 struct fb_info *info;
234 unsigned long *ptr; 232 unsigned long *ptr;