aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/omap_sdrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/omap_sdrc.c')
-rw-r--r--hw/misc/omap_sdrc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/misc/omap_sdrc.c b/hw/misc/omap_sdrc.c
index f2f72f6..6aa1b3e 100644
--- a/hw/misc/omap_sdrc.c
+++ b/hw/misc/omap_sdrc.c
@@ -31,10 +31,9 @@ void omap_sdrc_reset(struct omap_sdrc_s *s)
s->config = 0x10;
}
-static uint64_t omap_sdrc_read(void *opaque, hwaddr addr,
- unsigned size)
+static uint64_t omap_sdrc_read(void *opaque, hwaddr addr, unsigned size)
{
- struct omap_sdrc_s *s = (struct omap_sdrc_s *) opaque;
+ struct omap_sdrc_s *s = opaque;
if (size != 4) {
return omap_badwidth_read32(opaque, addr);
@@ -89,7 +88,7 @@ static uint64_t omap_sdrc_read(void *opaque, hwaddr addr,
static void omap_sdrc_write(void *opaque, hwaddr addr,
uint64_t value, unsigned size)
{
- struct omap_sdrc_s *s = (struct omap_sdrc_s *) opaque;
+ struct omap_sdrc_s *s = opaque;
if (size != 4) {
omap_badwidth_write32(opaque, addr, value);