diff options
author | Kevin Hao <haokexin@gmail.com> | 2015-03-12 08:32:47 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-17 05:04:32 -0400 |
commit | d14c374c2e4d2a42692d7fddf86f7261fbe99c5a (patch) | |
tree | 09f2670cfe8c6ece0ab2312855e4d766f4eb6ae1 | |
parent | 5299b620977ed6b1edbbedd5d9641c0afa9780fe (diff) |
fbdev: riva: remove the dependency on PPC_OF
The OF functionality has moved to a common place and be used by many
archs. So we don't need to include the ppc arch specific header files
and depend on PPC_OF option any more. This is a preparation for
killing PPC_OF.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | drivers/video/fbdev/riva/fbdev.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/video/fbdev/riva/fbdev.c b/drivers/video/fbdev/riva/fbdev.c index be73727c7227..294a80908c8c 100644 --- a/drivers/video/fbdev/riva/fbdev.c +++ b/drivers/video/fbdev/riva/fbdev.c | |||
@@ -44,10 +44,6 @@ | |||
44 | #ifdef CONFIG_MTRR | 44 | #ifdef CONFIG_MTRR |
45 | #include <asm/mtrr.h> | 45 | #include <asm/mtrr.h> |
46 | #endif | 46 | #endif |
47 | #ifdef CONFIG_PPC_OF | ||
48 | #include <asm/prom.h> | ||
49 | #include <asm/pci-bridge.h> | ||
50 | #endif | ||
51 | #ifdef CONFIG_PMAC_BACKLIGHT | 47 | #ifdef CONFIG_PMAC_BACKLIGHT |
52 | #include <asm/machdep.h> | 48 | #include <asm/machdep.h> |
53 | #include <asm/backlight.h> | 49 | #include <asm/backlight.h> |
@@ -1735,7 +1731,6 @@ static int riva_set_fbinfo(struct fb_info *info) | |||
1735 | return (rivafb_check_var(&info->var, info)); | 1731 | return (rivafb_check_var(&info->var, info)); |
1736 | } | 1732 | } |
1737 | 1733 | ||
1738 | #ifdef CONFIG_PPC_OF | ||
1739 | static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | 1734 | static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) |
1740 | { | 1735 | { |
1741 | struct riva_par *par = info->par; | 1736 | struct riva_par *par = info->par; |
@@ -1766,9 +1761,8 @@ static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | |||
1766 | NVTRACE_LEAVE(); | 1761 | NVTRACE_LEAVE(); |
1767 | return 0; | 1762 | return 0; |
1768 | } | 1763 | } |
1769 | #endif /* CONFIG_PPC_OF */ | ||
1770 | 1764 | ||
1771 | #if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF) | 1765 | #if defined(CONFIG_FB_RIVA_I2C) |
1772 | static int riva_get_EDID_i2c(struct fb_info *info) | 1766 | static int riva_get_EDID_i2c(struct fb_info *info) |
1773 | { | 1767 | { |
1774 | struct riva_par *par = info->par; | 1768 | struct riva_par *par = info->par; |
@@ -1828,10 +1822,13 @@ static void riva_update_default_var(struct fb_var_screeninfo *var, | |||
1828 | static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) | 1822 | static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) |
1829 | { | 1823 | { |
1830 | NVTRACE_ENTER(); | 1824 | NVTRACE_ENTER(); |
1831 | #ifdef CONFIG_PPC_OF | 1825 | if (riva_get_EDID_OF(info, pdev)) { |
1832 | if (!riva_get_EDID_OF(info, pdev)) | 1826 | NVTRACE_LEAVE(); |
1827 | return; | ||
1828 | } | ||
1829 | if (IS_ENABLED(CONFIG_OF)) | ||
1833 | printk(PFX "could not retrieve EDID from OF\n"); | 1830 | printk(PFX "could not retrieve EDID from OF\n"); |
1834 | #elif defined(CONFIG_FB_RIVA_I2C) | 1831 | #if defined(CONFIG_FB_RIVA_I2C) |
1835 | if (!riva_get_EDID_i2c(info)) | 1832 | if (!riva_get_EDID_i2c(info)) |
1836 | printk(PFX "could not retrieve EDID from DDC/I2C\n"); | 1833 | printk(PFX "could not retrieve EDID from DDC/I2C\n"); |
1837 | #endif | 1834 | #endif |