diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-06-07 10:46:10 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-06-15 10:17:25 +0300 |
commit | bc092a303a1b980c67324920471e23354b0721cd (patch) | |
tree | c9b5b9f687a71e39a18daabc162c9d2d5c0dd5f5 /drivers/video/omap | |
parent | 256a8042830e6ac1c3dd2e912e3c45769dd709cc (diff) | |
download | kernel_goldelico_gta04-bc092a303a1b980c67324920471e23354b0721cd.zip kernel_goldelico_gta04-bc092a303a1b980c67324920471e23354b0721cd.tar.gz kernel_goldelico_gta04-bc092a303a1b980c67324920471e23354b0721cd.tar.bz2 |
OMAP: OMAPFB: fix rfbi.c compile error
The code in rfbi.c tried to get the omapdss platform_device via a static
member defined in dispc.c, leading to a compile error. The same
platform_device is available through rfbi-struct.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap')
-rw-r--r-- | drivers/video/omap/rfbi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/omap/rfbi.c b/drivers/video/omap/rfbi.c index 1162603..eada9f1 100644 --- a/drivers/video/omap/rfbi.c +++ b/drivers/video/omap/rfbi.c @@ -26,6 +26,7 @@ #include <linux/interrupt.h> #include <linux/clk.h> #include <linux/io.h> +#include <linux/platform_device.h> #include "omapfb.h" #include "dispc.h" @@ -83,13 +84,13 @@ static inline u32 rfbi_read_reg(int idx) static int rfbi_get_clocks(void) { - rfbi.dss_ick = clk_get(&dispc.fbdev->dssdev->dev, "ick"); + rfbi.dss_ick = clk_get(&rfbi.fbdev->dssdev->dev, "ick"); if (IS_ERR(rfbi.dss_ick)) { dev_err(rfbi.fbdev->dev, "can't get ick\n"); return PTR_ERR(rfbi.dss_ick); } - rfbi.dss1_fck = clk_get(&dispc.fbdev->dssdev->dev, "dss1_fck"); + rfbi.dss1_fck = clk_get(&rfbi.fbdev->dssdev->dev, "dss1_fck"); if (IS_ERR(rfbi.dss1_fck)) { dev_err(rfbi.fbdev->dev, "can't get dss1_fck\n"); clk_put(rfbi.dss_ick); |