Commit a3ef33ed authored by Matthias Burghardt's avatar Matthias Burghardt Committed by Russell King

[ARM PATCH] 2191/1: bugfix for PXA SSP

Patch from Matthias Burghardt

In ssp_init dev->port is not yet initialized. Thus it cannot be used as an argument for request_mem_region. This patch fixes that.
parent 59503607
......@@ -185,7 +185,7 @@ int ssp_init(struct ssp_dev *dev, u32 port, u32 mode, u32 flags, u32 psp_flags,
{
int ret, irq;
if (!request_mem_region(__PREG(SSCR0_P(dev->port)), 0x2c, "SSP")) {
if (!request_mem_region(__PREG(SSCR0_P(port)), 0x2c, "SSP")) {
return -EBUSY;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment