diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/aty/radeon_monitor.c | 2 | ||||
-rw-r--r-- | drivers/video/cyber2000fb.c | 1 | ||||
-rw-r--r-- | drivers/video/logo/Makefile | 2 | ||||
-rw-r--r-- | drivers/video/sa1100fb.c | 15 |
4 files changed, 12 insertions, 8 deletions
diff --git a/drivers/video/aty/radeon_monitor.c b/drivers/video/aty/radeon_monitor.c index ea7c86306918..7f9838dceab5 100644 --- a/drivers/video/aty/radeon_monitor.c +++ b/drivers/video/aty/radeon_monitor.c | |||
@@ -423,7 +423,7 @@ static int __devinit radeon_parse_monitor_layout(struct radeonfb_info *rinfo, | |||
423 | /* | 423 | /* |
424 | * Probe display on both primary and secondary card's connector (if any) | 424 | * Probe display on both primary and secondary card's connector (if any) |
425 | * by various available techniques (i2c, OF device tree, BIOS, ...) and | 425 | * by various available techniques (i2c, OF device tree, BIOS, ...) and |
426 | * try to retreive EDID. The algorithm here comes from XFree's radeon | 426 | * try to retrieve EDID. The algorithm here comes from XFree's radeon |
427 | * driver | 427 | * driver |
428 | */ | 428 | */ |
429 | void __devinit radeon_probe_screens(struct radeonfb_info *rinfo, | 429 | void __devinit radeon_probe_screens(struct radeonfb_info *rinfo, |
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c index a9300f930ef2..55a3514157ed 100644 --- a/drivers/video/cyber2000fb.c +++ b/drivers/video/cyber2000fb.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <linux/init.h> | 50 | #include <linux/init.h> |
51 | 51 | ||
52 | #include <asm/io.h> | 52 | #include <asm/io.h> |
53 | #include <asm/irq.h> | ||
54 | #include <asm/pgtable.h> | 53 | #include <asm/pgtable.h> |
55 | #include <asm/system.h> | 54 | #include <asm/system.h> |
56 | #include <asm/uaccess.h> | 55 | #include <asm/uaccess.h> |
diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile index d0244c04af5a..4ef5cd19609d 100644 --- a/drivers/video/logo/Makefile +++ b/drivers/video/logo/Makefile | |||
@@ -16,7 +16,7 @@ obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o | |||
16 | 16 | ||
17 | # How to generate logo's | 17 | # How to generate logo's |
18 | 18 | ||
19 | # Use logo-cfiles to retreive list of .c files to be built | 19 | # Use logo-cfiles to retrieve list of .c files to be built |
20 | logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \ | 20 | logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \ |
21 | $(wildcard $(srctree)/$(src)/*$(1).$(2)))) | 21 | $(wildcard $(srctree)/$(src)/*$(1).$(2)))) |
22 | 22 | ||
diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index 2ea1354e439f..087e58689e4c 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c | |||
@@ -178,7 +178,6 @@ | |||
178 | 178 | ||
179 | #include <asm/hardware.h> | 179 | #include <asm/hardware.h> |
180 | #include <asm/io.h> | 180 | #include <asm/io.h> |
181 | #include <asm/irq.h> | ||
182 | #include <asm/mach-types.h> | 181 | #include <asm/mach-types.h> |
183 | #include <asm/uaccess.h> | 182 | #include <asm/uaccess.h> |
184 | #include <asm/arch/assabet.h> | 183 | #include <asm/arch/assabet.h> |
@@ -1455,7 +1454,11 @@ static struct sa1100fb_info * __init sa1100fb_init_fbinfo(struct device *dev) | |||
1455 | static int __init sa1100fb_probe(struct platform_device *pdev) | 1454 | static int __init sa1100fb_probe(struct platform_device *pdev) |
1456 | { | 1455 | { |
1457 | struct sa1100fb_info *fbi; | 1456 | struct sa1100fb_info *fbi; |
1458 | int ret; | 1457 | int ret, irq; |
1458 | |||
1459 | irq = platform_get_irq(pdev, 0); | ||
1460 | if (irq <= 0) | ||
1461 | return -EINVAL; | ||
1459 | 1462 | ||
1460 | if (!request_mem_region(0xb0100000, 0x10000, "LCD")) | 1463 | if (!request_mem_region(0xb0100000, 0x10000, "LCD")) |
1461 | return -EBUSY; | 1464 | return -EBUSY; |
@@ -1470,7 +1473,7 @@ static int __init sa1100fb_probe(struct platform_device *pdev) | |||
1470 | if (ret) | 1473 | if (ret) |
1471 | goto failed; | 1474 | goto failed; |
1472 | 1475 | ||
1473 | ret = request_irq(IRQ_LCD, sa1100fb_handle_irq, SA_INTERRUPT, | 1476 | ret = request_irq(irq, sa1100fb_handle_irq, SA_INTERRUPT, |
1474 | "LCD", fbi); | 1477 | "LCD", fbi); |
1475 | if (ret) { | 1478 | if (ret) { |
1476 | printk(KERN_ERR "sa1100fb: request_irq failed: %d\n", ret); | 1479 | printk(KERN_ERR "sa1100fb: request_irq failed: %d\n", ret); |
@@ -1492,7 +1495,7 @@ static int __init sa1100fb_probe(struct platform_device *pdev) | |||
1492 | 1495 | ||
1493 | ret = register_framebuffer(&fbi->fb); | 1496 | ret = register_framebuffer(&fbi->fb); |
1494 | if (ret < 0) | 1497 | if (ret < 0) |
1495 | goto failed; | 1498 | goto err_free_irq; |
1496 | 1499 | ||
1497 | #ifdef CONFIG_CPU_FREQ | 1500 | #ifdef CONFIG_CPU_FREQ |
1498 | fbi->freq_transition.notifier_call = sa1100fb_freq_transition; | 1501 | fbi->freq_transition.notifier_call = sa1100fb_freq_transition; |
@@ -1504,7 +1507,9 @@ static int __init sa1100fb_probe(struct platform_device *pdev) | |||
1504 | /* This driver cannot be unloaded at the moment */ | 1507 | /* This driver cannot be unloaded at the moment */ |
1505 | return 0; | 1508 | return 0; |
1506 | 1509 | ||
1507 | failed: | 1510 | err_free_irq: |
1511 | free_irq(irq, fbi); | ||
1512 | failed: | ||
1508 | platform_set_drvdata(pdev, NULL); | 1513 | platform_set_drvdata(pdev, NULL); |
1509 | kfree(fbi); | 1514 | kfree(fbi); |
1510 | release_mem_region(0xb0100000, 0x10000); | 1515 | release_mem_region(0xb0100000, 0x10000); |