aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap24xxcam.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-05-03 17:22:27 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-15 06:50:27 -0400
commitd0f8dfc6e74df5cdefb65ae27d52d848d3973cc8 (patch)
tree05ce37c07d6afbb4cef690c6d4f1c168f682c765 /drivers/media/video/omap24xxcam.h
parent5cbd28df305ab29b7e43bd8e901e7824f7ed9417 (diff)
[media] video/omap24xxcam: use __iomem annotations
MMIO registers are __iomem tokens in virtual address space, not integers. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap24xxcam.h')
-rw-r--r--drivers/media/video/omap24xxcam.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/omap24xxcam.h b/drivers/media/video/omap24xxcam.h
index 2ce67f5a48d5..d59727afe894 100644
--- a/drivers/media/video/omap24xxcam.h
+++ b/drivers/media/video/omap24xxcam.h
@@ -429,7 +429,7 @@ struct sgdma_state {
429struct omap24xxcam_dma { 429struct omap24xxcam_dma {
430 spinlock_t lock; /* Lock for the whole structure. */ 430 spinlock_t lock; /* Lock for the whole structure. */
431 431
432 unsigned long base; /* base address for dma controller */ 432 void __iomem *base; /* base address for dma controller */
433 433
434 /* While dma_stop!=0, an attempt to start a new DMA transfer will 434 /* While dma_stop!=0, an attempt to start a new DMA transfer will
435 * fail. 435 * fail.
@@ -491,7 +491,7 @@ struct omap24xxcam_device {
491 491
492 /*** hardware resources ***/ 492 /*** hardware resources ***/
493 unsigned int irq; 493 unsigned int irq;
494 unsigned long mmio_base; 494 void __iomem *mmio_base;
495 unsigned long mmio_base_phys; 495 unsigned long mmio_base_phys;
496 unsigned long mmio_size; 496 unsigned long mmio_size;
497 497
@@ -544,22 +544,22 @@ struct omap24xxcam_fh {
544 * 544 *
545 */ 545 */
546 546
547static inline u32 omap24xxcam_reg_in(unsigned long base, u32 offset) 547static inline u32 omap24xxcam_reg_in(u32 __iomem *base, u32 offset)
548{ 548{
549 return readl(base + offset); 549 return readl(base + offset);
550} 550}
551 551
552static inline u32 omap24xxcam_reg_out(unsigned long base, u32 offset, 552static inline u32 omap24xxcam_reg_out(u32 __iomem *base, u32 offset,
553 u32 val) 553 u32 val)
554{ 554{
555 writel(val, base + offset); 555 writel(val, base + offset);
556 return val; 556 return val;
557} 557}
558 558
559static inline u32 omap24xxcam_reg_merge(unsigned long base, u32 offset, 559static inline u32 omap24xxcam_reg_merge(u32 __iomem *base, u32 offset,
560 u32 val, u32 mask) 560 u32 val, u32 mask)
561{ 561{
562 u32 addr = base + offset; 562 u32 __iomem *addr = base + offset;
563 u32 new_val = (readl(addr) & ~mask) | (val & mask); 563 u32 new_val = (readl(addr) & ~mask) | (val & mask);
564 564
565 writel(new_val, addr); 565 writel(new_val, addr);
@@ -585,7 +585,7 @@ int omap24xxcam_sgdma_queue(struct omap24xxcam_sgdma *sgdma,
585 int len, sgdma_callback_t callback, void *arg); 585 int len, sgdma_callback_t callback, void *arg);
586void omap24xxcam_sgdma_sync(struct omap24xxcam_sgdma *sgdma); 586void omap24xxcam_sgdma_sync(struct omap24xxcam_sgdma *sgdma);
587void omap24xxcam_sgdma_init(struct omap24xxcam_sgdma *sgdma, 587void omap24xxcam_sgdma_init(struct omap24xxcam_sgdma *sgdma,
588 unsigned long base, 588 void __iomem *base,
589 void (*reset_callback)(unsigned long data), 589 void (*reset_callback)(unsigned long data),
590 unsigned long reset_callback_data); 590 unsigned long reset_callback_data);
591void omap24xxcam_sgdma_exit(struct omap24xxcam_sgdma *sgdma); 591void omap24xxcam_sgdma_exit(struct omap24xxcam_sgdma *sgdma);