Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184701
b: refs/heads/master
c: d761585
h: refs/heads/master
i:
  184699: dadf54d
v: v3
  • Loading branch information
Felipe Balbi authored and Tony Lindgren committed Feb 15, 2010
1 parent a15c0ed commit 2db8442
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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: 96fbd74551e9cae8fd5e9cb62a0a19336a3064fa
refs/heads/master: d761585a0571c9d508b26735a3d268ff3ec3a548
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap1/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static inline void omap_init_rtc(void) {}
# define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1
#endif

#define OMAP1_MBOX_BASE OMAP1_IO_ADDRESS(OMAP16XX_MAILBOX_BASE)
#define OMAP1_MBOX_BASE OMAP16XX_MAILBOX_BASE

static struct resource mbox_resources[] = {
{
Expand Down
9 changes: 7 additions & 2 deletions trunk/arch/arm/mach-omap1/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ EXPORT_SYMBOL(mbox_dsp_info);
static int __devinit omap1_mbox_probe(struct platform_device *pdev)
{
struct resource *res;
int ret = 0;

if (pdev->num_resources != 2) {
dev_err(&pdev->dev, "invalid number of resources: %d\n",
Expand All @@ -160,12 +159,18 @@ static int __devinit omap1_mbox_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "invalid mem resource\n");
return -ENODEV;
}
mbox_base = res->start;

mbox_base = ioremap(res->start, resource_size(res));
if (!mbox_base) {
dev_err(&pdev->dev, "ioremap failed\n");
return -ENODEV;
}

/* DSP IRQ */
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
if (unlikely(!res)) {
dev_err(&pdev->dev, "invalid irq resource\n");
iounmap(mbox_base);
return -ENODEV;
}
mbox_dsp_info.irq = res->start;
Expand Down

0 comments on commit 2db8442

Please sign in to comment.