From: Joni Lapilainen <joni.lapilai...@gmail.com>

Signed-off-by: Joni Lapilainen <joni.lapilai...@gmail.com>
---
 drivers/media/rc/ir-rx51.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c
index 8ead492..3971192 100644
--- a/drivers/media/rc/ir-rx51.c
+++ b/drivers/media/rc/ir-rx51.c
@@ -27,7 +27,8 @@
 #include <linux/wait.h>
 
 #include <plat/dmtimer.h>
-#include <plat/clock.h>
+
+#include "../../../arch/arm/mach-omap2/clock.h"
 
 #include <media/lirc.h>
 #include <media/lirc_dev.h>
@@ -209,7 +210,7 @@ static int lirc_rx51_init_port(struct lirc_rx51 *lirc_rx51)
        }
 
        clk_fclk = omap_dm_timer_get_fclk(lirc_rx51->pwm_timer);
-       lirc_rx51->fclk_khz = clk_fclk->rate / 1000;
+       lirc_rx51->fclk_khz = clk_get_rate(clk_fclk) / 1000;
 
        return 0;
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to