diff options
author | Olof Johansson <olof@lixom.net> | 2013-01-16 22:58:08 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-01-16 22:58:58 -0500 |
commit | 5046e385b4426e229a6beb4bce480762af91a6fc (patch) | |
tree | 65b4bff2c913a18840b3c58892853d51b942ac43 /drivers/video/tdfxfb.c | |
parent | a73b59c51ab288d81b515b504790267f594884b8 (diff) | |
parent | b86dc0d8c12bbb9fed3f392c284bdc7114ce00c1 (diff) |
Merge branch 'v3.8-samsung-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into fixes
From Kukjin Kim:
That branch fixes build error for S3C24XX/S3C64xx. And corrects dw-mshc
properties on EXYNOS5 DT and fixes IRQ mapping on Cragganmore board.
* 'v3.8-samsung-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
ARM: S3C64XX: Fix up IRQ mapping for balblair on Cragganmore
ARM: dts: correct the dw-mshc timing properties as per binding
ARM: S3C64XX: Fix build error with CONFIG_S3C_DEV_FB disabled
+ Linux 3.8-rc3
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/video/tdfxfb.c')
-rw-r--r-- | drivers/video/tdfxfb.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index e026724a3a56..64bc28ba4037 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c | |||
@@ -100,7 +100,7 @@ static inline int mtrr_del(int reg, unsigned long base, | |||
100 | #define VOODOO3_MAX_PIXCLOCK 300000 | 100 | #define VOODOO3_MAX_PIXCLOCK 300000 |
101 | #define VOODOO5_MAX_PIXCLOCK 350000 | 101 | #define VOODOO5_MAX_PIXCLOCK 350000 |
102 | 102 | ||
103 | static struct fb_fix_screeninfo tdfx_fix __devinitdata = { | 103 | static struct fb_fix_screeninfo tdfx_fix = { |
104 | .type = FB_TYPE_PACKED_PIXELS, | 104 | .type = FB_TYPE_PACKED_PIXELS, |
105 | .visual = FB_VISUAL_PSEUDOCOLOR, | 105 | .visual = FB_VISUAL_PSEUDOCOLOR, |
106 | .ypanstep = 1, | 106 | .ypanstep = 1, |
@@ -108,7 +108,7 @@ static struct fb_fix_screeninfo tdfx_fix __devinitdata = { | |||
108 | .accel = FB_ACCEL_3DFX_BANSHEE | 108 | .accel = FB_ACCEL_3DFX_BANSHEE |
109 | }; | 109 | }; |
110 | 110 | ||
111 | static struct fb_var_screeninfo tdfx_var __devinitdata = { | 111 | static struct fb_var_screeninfo tdfx_var = { |
112 | /* "640x480, 8 bpp @ 60 Hz */ | 112 | /* "640x480, 8 bpp @ 60 Hz */ |
113 | .xres = 640, | 113 | .xres = 640, |
114 | .yres = 480, | 114 | .yres = 480, |
@@ -135,9 +135,8 @@ static struct fb_var_screeninfo tdfx_var __devinitdata = { | |||
135 | /* | 135 | /* |
136 | * PCI driver prototypes | 136 | * PCI driver prototypes |
137 | */ | 137 | */ |
138 | static int __devinit tdfxfb_probe(struct pci_dev *pdev, | 138 | static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id); |
139 | const struct pci_device_id *id); | 139 | static void tdfxfb_remove(struct pci_dev *pdev); |
140 | static void __devexit tdfxfb_remove(struct pci_dev *pdev); | ||
141 | 140 | ||
142 | static struct pci_device_id tdfxfb_id_table[] = { | 141 | static struct pci_device_id tdfxfb_id_table[] = { |
143 | { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE, | 142 | { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE, |
@@ -156,7 +155,7 @@ static struct pci_driver tdfxfb_driver = { | |||
156 | .name = "tdfxfb", | 155 | .name = "tdfxfb", |
157 | .id_table = tdfxfb_id_table, | 156 | .id_table = tdfxfb_id_table, |
158 | .probe = tdfxfb_probe, | 157 | .probe = tdfxfb_probe, |
159 | .remove = __devexit_p(tdfxfb_remove), | 158 | .remove = tdfxfb_remove, |
160 | }; | 159 | }; |
161 | 160 | ||
162 | MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); | 161 | MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); |
@@ -167,9 +166,9 @@ MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); | |||
167 | static int nopan; | 166 | static int nopan; |
168 | static int nowrap = 1; /* not implemented (yet) */ | 167 | static int nowrap = 1; /* not implemented (yet) */ |
169 | static int hwcursor = 1; | 168 | static int hwcursor = 1; |
170 | static char *mode_option __devinitdata; | 169 | static char *mode_option; |
171 | /* mtrr option */ | 170 | /* mtrr option */ |
172 | static bool nomtrr __devinitdata; | 171 | static bool nomtrr; |
173 | 172 | ||
174 | /* ------------------------------------------------------------------------- | 173 | /* ------------------------------------------------------------------------- |
175 | * Hardware-specific funcions | 174 | * Hardware-specific funcions |
@@ -1279,8 +1278,8 @@ static int tdfxfb_ddc_getsda(void *data) | |||
1279 | return (0 != (tdfx_inl(par, VIDSERPARPORT) & DDC_SDA_IN)); | 1278 | return (0 != (tdfx_inl(par, VIDSERPARPORT) & DDC_SDA_IN)); |
1280 | } | 1279 | } |
1281 | 1280 | ||
1282 | static int __devinit tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, | 1281 | static int tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, const char *name, |
1283 | const char *name, struct device *dev) | 1282 | struct device *dev) |
1284 | { | 1283 | { |
1285 | int rc; | 1284 | int rc; |
1286 | 1285 | ||
@@ -1308,8 +1307,8 @@ static int __devinit tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, | |||
1308 | return rc; | 1307 | return rc; |
1309 | } | 1308 | } |
1310 | 1309 | ||
1311 | static int __devinit tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, | 1310 | static int tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, const char *name, |
1312 | const char *name, struct device *dev) | 1311 | struct device *dev) |
1313 | { | 1312 | { |
1314 | int rc; | 1313 | int rc; |
1315 | 1314 | ||
@@ -1336,7 +1335,7 @@ static int __devinit tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, | |||
1336 | return rc; | 1335 | return rc; |
1337 | } | 1336 | } |
1338 | 1337 | ||
1339 | static void __devinit tdfxfb_create_i2c_busses(struct fb_info *info) | 1338 | static void tdfxfb_create_i2c_busses(struct fb_info *info) |
1340 | { | 1339 | { |
1341 | struct tdfx_par *par = info->par; | 1340 | struct tdfx_par *par = info->par; |
1342 | 1341 | ||
@@ -1388,8 +1387,7 @@ static int tdfxfb_probe_i2c_connector(struct tdfx_par *par, | |||
1388 | * Initializes and allocates resources for PCI device @pdev. | 1387 | * Initializes and allocates resources for PCI device @pdev. |
1389 | * | 1388 | * |
1390 | */ | 1389 | */ |
1391 | static int __devinit tdfxfb_probe(struct pci_dev *pdev, | 1390 | static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1392 | const struct pci_device_id *id) | ||
1393 | { | 1391 | { |
1394 | struct tdfx_par *default_par; | 1392 | struct tdfx_par *default_par; |
1395 | struct fb_info *info; | 1393 | struct fb_info *info; |
@@ -1626,7 +1624,7 @@ static void __init tdfxfb_setup(char *options) | |||
1626 | * lifetime for the PCI device @pdev. | 1624 | * lifetime for the PCI device @pdev. |
1627 | * | 1625 | * |
1628 | */ | 1626 | */ |
1629 | static void __devexit tdfxfb_remove(struct pci_dev *pdev) | 1627 | static void tdfxfb_remove(struct pci_dev *pdev) |
1630 | { | 1628 | { |
1631 | struct fb_info *info = pci_get_drvdata(pdev); | 1629 | struct fb_info *info = pci_get_drvdata(pdev); |
1632 | struct tdfx_par *par = info->par; | 1630 | struct tdfx_par *par = info->par; |