Skip to content

Commit 9fbf8e8

Browse files
Wolfram Sangralfbaechle
authored andcommitted
arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: John Crispin <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/6348/
1 parent d5ab2ad commit 9fbf8e8

File tree

1 file changed

+0
-4
lines changed
  • arch/mips/lantiq/xway

1 file changed

+0
-4
lines changed

arch/mips/lantiq/xway/dma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,6 @@ ltq_dma_init(struct platform_device *pdev)
220220
int i;
221221

222222
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
223-
if (!res)
224-
panic("Failed to get dma resource");
225-
226-
/* remap dma register range */
227223
ltq_dma_membase = devm_ioremap_resource(&pdev->dev, res);
228224
if (IS_ERR(ltq_dma_membase))
229225
panic("Failed to remap dma resource");

0 commit comments

Comments
 (0)