Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
#define CPU2_TRACE_EN 0x02
static struct clk *sdti_ck;
#define CPU2_TRACE_EN 0x02
static struct clk *sdti_ck;
-unsigned long sti_base, sti_channel_base;
+void __iomem *sti_base, *sti_channel_base;
static DEFINE_SPINLOCK(sdti_lock);
void omap_sti_channel_write_trace(int len, int id, void *data,
static DEFINE_SPINLOCK(sdti_lock);
void omap_sti_channel_write_trace(int len, int id, void *data,
}
size = res->end - res->start;
}
size = res->end - res->start;
- sti_base = (unsigned long)ioremap(res->start, size);
+ sti_base = ioremap(res->start, size);
if (unlikely(!sti_base))
return -ENODEV;
size = cres->end - cres->start;
if (unlikely(!sti_base))
return -ENODEV;
size = cres->end - cres->start;
- sti_channel_base = (unsigned long)ioremap(cres->start, size);
+ sti_channel_base = ioremap(cres->start, size);
if (unlikely(!sti_channel_base)) {
if (unlikely(!sti_channel_base)) {
- iounmap((void *)sti_base);
static int __devexit omap_sdti_remove(struct platform_device *pdev)
{
static int __devexit omap_sdti_remove(struct platform_device *pdev)
{
- iounmap((void *)sti_channel_base);
- iounmap((void *)sti_base);
+ iounmap(sti_channel_base);
+ iounmap(sti_base);
omap_sdti_exit();
return 0;
omap_sdti_exit();
return 0;