summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-06-28 15:55:27 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-07-12 19:01:33 -0700
commit69bcb09d151bf8824c1fd2054bd8cbf72acac1bf (patch)
treee294606fe30ef54a3b6f057ac2fa914f600ddfbc /drivers
parentbede78136c5479f71dda8212e89b3caf111b4002 (diff)
video: tegra: dc: Remove tegrafb dependency
The common dc.c code shouldn't include tegrafb.h; this breaks modularity. Fortunately, it was only being used to count windows, and there's a non-FB-specific version of that. Change-Id: I81a082ce9cf6f7da32da0c2399344c017863c6ee Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-on: http://git-master/r/39300 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/dc/dc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 4aa8ad1b8b8b..5560505fca4f 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -34,7 +34,6 @@
#include <linux/seq_file.h>
#include <linux/backlight.h>
#include <linux/switch.h>
-#include <video/tegrafb.h>
#include <mach/clk.h>
#include <mach/dc.h>
@@ -657,7 +656,7 @@ static unsigned int tegra_dc_find_max_bandwidth(struct tegra_dc_win *wins[],
static unsigned long tegra_dc_get_emc_rate(struct tegra_dc_win *wins[], int n)
{
int i;
- unsigned int bw[TEGRA_FB_FLIP_N_WINDOWS];
+ unsigned int bw[DC_N_WINDOWS];
struct tegra_dc_win *w;
struct tegra_dc *dc;
unsigned int max;