Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343917
b: refs/heads/master
c: baa2983
h: refs/heads/master
i:
  343915: 5f3585f
v: v3
  • Loading branch information
Lad, Prabhakar authored and Mauro Carvalho Chehab committed Nov 21, 2012
1 parent ed3a59f commit 59ba5ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c5dff905714446f8836b40a93bfeabd0aea8c82
refs/heads/master: baa29837a76d5738837602ff249a0c371591d7c7
9 changes: 4 additions & 5 deletions trunk/drivers/media/platform/davinci/vpbe_osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline u32 osd_set(struct osd_state *sd, u32 mask, u32 offset)
{
struct osd_state *osd = sd;

u32 addr = osd->osd_base + offset;
void __iomem *addr = osd->osd_base + offset;
u32 val = readl(addr) | mask;

writel(val, addr);
Expand All @@ -74,7 +74,7 @@ static inline u32 osd_clear(struct osd_state *sd, u32 mask, u32 offset)
{
struct osd_state *osd = sd;

u32 addr = osd->osd_base + offset;
void __iomem *addr = osd->osd_base + offset;
u32 val = readl(addr) & ~mask;

writel(val, addr);
Expand All @@ -87,7 +87,7 @@ static inline u32 osd_modify(struct osd_state *sd, u32 mask, u32 val,
{
struct osd_state *osd = sd;

u32 addr = osd->osd_base + offset;
void __iomem *addr = osd->osd_base + offset;
u32 new_val = (readl(addr) & ~mask) | (val & mask);

writel(new_val, addr);
Expand Down Expand Up @@ -1559,8 +1559,7 @@ static int osd_probe(struct platform_device *pdev)
ret = -ENODEV;
goto free_mem;
}
osd->osd_base = (unsigned long)ioremap_nocache(res->start,
osd->osd_size);
osd->osd_base = ioremap_nocache(res->start, osd->osd_size);
if (!osd->osd_base) {
dev_err(osd->dev, "Unable to map the OSD region\n");
ret = -ENODEV;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/media/davinci/vpbe_osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ struct osd_state {
spinlock_t lock;
struct device *dev;
dma_addr_t osd_base_phys;
unsigned long osd_base;
void __iomem *osd_base;
unsigned long osd_size;
/* 1-->the isr will toggle the VID0 ping-pong buffer */
int pingpong;
Expand Down

0 comments on commit 59ba5ac

Please sign in to comment.