aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-03 06:02:16 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-25 09:25:24 -0400
commitfc6ad619a5d29c94e3eecefa572dc1d4fefdc240 (patch)
treebda72465ae80040d82edf9f86506dedc73934551
parentf735bba4cc1435d0e9107f77f26f96a3483db0b1 (diff)
video: drop code for ARCH_SHARK in cyber2000fb
The Cyber2000 frame buffer driver contains a block of code solely for the Shark machine. As the machine is deleted, delete this code as well. Also remove the pointless #ifdef CONFIG_PCI as the Kconfig clearly states PCI as a dependency anyway. Cc: Russell King <linux@arm.linux.org.uk> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/video/cyber2000fb.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c
index 57886787ead0..1c446bc48b42 100644
--- a/drivers/video/cyber2000fb.c
+++ b/drivers/video/cyber2000fb.c
@@ -1641,67 +1641,6 @@ static void cyberpro_common_resume(struct cfb_info *cfb)
1641 cyber2000fb_set_par(&cfb->fb); 1641 cyber2000fb_set_par(&cfb->fb);
1642} 1642}
1643 1643
1644#ifdef CONFIG_ARCH_SHARK
1645
1646#include <mach/framebuffer.h>
1647
1648static int cyberpro_vl_probe(void)
1649{
1650 struct cfb_info *cfb;
1651 int err = -ENOMEM;
1652
1653 if (!request_mem_region(FB_START, FB_SIZE, "CyberPro2010"))
1654 return err;
1655
1656 cfb = cyberpro_alloc_fb_info(ID_CYBERPRO_2010, "CyberPro2010");
1657 if (!cfb)
1658 goto failed_release;
1659
1660 cfb->irq = -1;
1661 cfb->region = ioremap(FB_START, FB_SIZE);
1662 if (!cfb->region)
1663 goto failed_ioremap;
1664
1665 cfb->regs = cfb->region + MMIO_OFFSET;
1666 cfb->fb.device = NULL;
1667 cfb->fb.fix.mmio_start = FB_START + MMIO_OFFSET;
1668 cfb->fb.fix.smem_start = FB_START;
1669
1670 /*
1671 * Bring up the hardware. This is expected to enable access
1672 * to the linear memory region, and allow access to the memory
1673 * mapped registers. Also, mem_ctl1 and mem_ctl2 must be
1674 * initialised.
1675 */
1676 cyber2000fb_writeb(0x18, 0x46e8, cfb);
1677 cyber2000fb_writeb(0x01, 0x102, cfb);
1678 cyber2000fb_writeb(0x08, 0x46e8, cfb);
1679 cyber2000fb_writeb(EXT_BIU_MISC, 0x3ce, cfb);
1680 cyber2000fb_writeb(EXT_BIU_MISC_LIN_ENABLE, 0x3cf, cfb);
1681
1682 cfb->mclk_mult = 0xdb;
1683 cfb->mclk_div = 0x54;
1684
1685 err = cyberpro_common_probe(cfb);
1686 if (err)
1687 goto failed;
1688
1689 if (int_cfb_info == NULL)
1690 int_cfb_info = cfb;
1691
1692 return 0;
1693
1694failed:
1695 iounmap(cfb->region);
1696failed_ioremap:
1697 cyberpro_free_fb_info(cfb);
1698failed_release:
1699 release_mem_region(FB_START, FB_SIZE);
1700
1701 return err;
1702}
1703#endif /* CONFIG_ARCH_SHARK */
1704
1705/* 1644/*
1706 * PCI specific support. 1645 * PCI specific support.
1707 */ 1646 */
@@ -1948,28 +1887,19 @@ static int __init cyber2000fb_init(void)
1948 cyber2000fb_setup(option); 1887 cyber2000fb_setup(option);
1949#endif 1888#endif
1950 1889
1951#ifdef CONFIG_ARCH_SHARK
1952 err = cyberpro_vl_probe();
1953 if (!err)
1954 ret = 0;
1955#endif
1956#ifdef CONFIG_PCI
1957 err = pci_register_driver(&cyberpro_driver); 1890 err = pci_register_driver(&cyberpro_driver);
1958 if (!err) 1891 if (!err)
1959 ret = 0; 1892 ret = 0;
1960#endif
1961 1893
1962 return ret ? err : 0; 1894 return ret ? err : 0;
1963} 1895}
1964module_init(cyber2000fb_init); 1896module_init(cyber2000fb_init);
1965 1897
1966#ifndef CONFIG_ARCH_SHARK
1967static void __exit cyberpro_exit(void) 1898static void __exit cyberpro_exit(void)
1968{ 1899{
1969 pci_unregister_driver(&cyberpro_driver); 1900 pci_unregister_driver(&cyberpro_driver);
1970} 1901}
1971module_exit(cyberpro_exit); 1902module_exit(cyberpro_exit);
1972#endif
1973 1903
1974MODULE_AUTHOR("Russell King"); 1904MODULE_AUTHOR("Russell King");
1975MODULE_DESCRIPTION("CyberPro 2000, 2010 and 5000 framebuffer driver"); 1905MODULE_DESCRIPTION("CyberPro 2000, 2010 and 5000 framebuffer driver");