sun3x_esp.c (7022b15e2a9f878fd5184586064c63352c3dd225) sun3x_esp.c (3fe68cc152fc7cc6a763c692544a0ab71926c800)
1/* sun3x_esp.c: ESP front-end for Sun3x systems.
2 *
3 * Copyright (C) 2007,2008 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
4 */
5
6#include <linux/kernel.h>
7#include <linux/types.h>
8#include <linux/delay.h>

--- 199 unchanged lines hidden (view full) ---

208 host->max_id = 8;
209 esp = shost_priv(host);
210
211 esp->host = host;
212 esp->dev = dev;
213 esp->ops = &sun3x_esp_ops;
214
215 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
1/* sun3x_esp.c: ESP front-end for Sun3x systems.
2 *
3 * Copyright (C) 2007,2008 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
4 */
5
6#include <linux/kernel.h>
7#include <linux/types.h>
8#include <linux/delay.h>

--- 199 unchanged lines hidden (view full) ---

208 host->max_id = 8;
209 esp = shost_priv(host);
210
211 esp->host = host;
212 esp->dev = dev;
213 esp->ops = &sun3x_esp_ops;
214
215 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
216 if (!res && !res->start)
216 if (!res || !res->start)
217 goto fail_unlink;
218
219 esp->regs = ioremap_nocache(res->start, 0x20);
220 if (!esp->regs)
221 goto fail_unmap_regs;
222
223 res = platform_get_resource(dev, IORESOURCE_MEM, 1);
217 goto fail_unlink;
218
219 esp->regs = ioremap_nocache(res->start, 0x20);
220 if (!esp->regs)
221 goto fail_unmap_regs;
222
223 res = platform_get_resource(dev, IORESOURCE_MEM, 1);
224 if (!res && !res->start)
224 if (!res || !res->start)
225 goto fail_unmap_regs;
226
227 esp->dma_regs = ioremap_nocache(res->start, 0x10);
228
229 esp->command_block = dma_alloc_coherent(esp->dev, 16,
230 &esp->command_block_dma,
231 GFP_KERNEL);
232 if (!esp->command_block)

--- 86 unchanged lines hidden ---
225 goto fail_unmap_regs;
226
227 esp->dma_regs = ioremap_nocache(res->start, 0x10);
228
229 esp->command_block = dma_alloc_coherent(esp->dev, 16,
230 &esp->command_block_dma,
231 GFP_KERNEL);
232 if (!esp->command_block)

--- 86 unchanged lines hidden ---