diff options
Diffstat (limited to 'arch/arm/plat-pxa')
-rw-r--r-- | arch/arm/plat-pxa/ssp.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index cfebcd836f3e..3bf704d7a0d6 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c | |||
@@ -92,6 +92,22 @@ static int __devinit ssp_probe(struct platform_device *pdev) | |||
92 | goto err_free; | 92 | goto err_free; |
93 | } | 93 | } |
94 | 94 | ||
95 | res = platform_get_resource(pdev, IORESOURCE_DMA, 0); | ||
96 | if (res == NULL) { | ||
97 | dev_err(&pdev->dev, "no SSP RX DRCMR defined\n"); | ||
98 | ret = -ENODEV; | ||
99 | goto err_free_clk; | ||
100 | } | ||
101 | ssp->drcmr_rx = res->start; | ||
102 | |||
103 | res = platform_get_resource(pdev, IORESOURCE_DMA, 1); | ||
104 | if (res == NULL) { | ||
105 | dev_err(&pdev->dev, "no SSP TX DRCMR defined\n"); | ||
106 | ret = -ENODEV; | ||
107 | goto err_free_clk; | ||
108 | } | ||
109 | ssp->drcmr_tx = res->start; | ||
110 | |||
95 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 111 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
96 | if (res == NULL) { | 112 | if (res == NULL) { |
97 | dev_err(&pdev->dev, "no memory resource defined\n"); | 113 | dev_err(&pdev->dev, "no memory resource defined\n"); |
@@ -123,22 +139,6 @@ static int __devinit ssp_probe(struct platform_device *pdev) | |||
123 | goto err_free_io; | 139 | goto err_free_io; |
124 | } | 140 | } |
125 | 141 | ||
126 | res = platform_get_resource(pdev, IORESOURCE_DMA, 0); | ||
127 | if (res == NULL) { | ||
128 | dev_err(&pdev->dev, "no SSP RX DRCMR defined\n"); | ||
129 | ret = -ENODEV; | ||
130 | goto err_free_io; | ||
131 | } | ||
132 | ssp->drcmr_rx = res->start; | ||
133 | |||
134 | res = platform_get_resource(pdev, IORESOURCE_DMA, 1); | ||
135 | if (res == NULL) { | ||
136 | dev_err(&pdev->dev, "no SSP TX DRCMR defined\n"); | ||
137 | ret = -ENODEV; | ||
138 | goto err_free_io; | ||
139 | } | ||
140 | ssp->drcmr_tx = res->start; | ||
141 | |||
142 | /* PXA2xx/3xx SSP ports starts from 1 and the internal pdev->id | 142 | /* PXA2xx/3xx SSP ports starts from 1 and the internal pdev->id |
143 | * starts from 0, do a translation here | 143 | * starts from 0, do a translation here |
144 | */ | 144 | */ |