All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource
@ 2014-01-14 11:58 Wolfram Sang
       [not found] ` <1389700739-3696-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
                   ` (6 more replies)
  0 siblings, 7 replies; 36+ messages in thread
From: Wolfram Sang @ 2014-01-14 11:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: Wolfram Sang, Ralf Baechle, linux-mips

devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: John Crispin <blogic@openwrt.org>
---

Should go via subsystem tree

 arch/mips/lantiq/xway/dma.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
index 08f7ebd..78a91fa 100644
--- a/arch/mips/lantiq/xway/dma.c
+++ b/arch/mips/lantiq/xway/dma.c
@@ -220,10 +220,6 @@ ltq_dma_init(struct platform_device *pdev)
 	int i;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!res)
-		panic("Failed to get dma resource");
-
-	/* remap dma register range */
 	ltq_dma_membase = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(ltq_dma_membase))
 		panic("Failed to remap dma resource");
-- 
1.8.5.1


^ permalink raw reply related	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2014-03-06  9:35 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 11:58 [PATCH 1/7] arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource Wolfram Sang
     [not found] ` <1389700739-3696-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2014-01-14 11:58   ` [PATCH 2/7] drivers/amba: " Wolfram Sang
2014-01-14 11:58     ` Wolfram Sang
     [not found]     ` <1389700739-3696-2-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2014-01-14 13:32       ` Thierry Reding
2014-01-14 13:32         ` Thierry Reding
2014-01-14 17:40       ` Stephen Warren
2014-01-14 17:40         ` Stephen Warren
     [not found]         ` <52D57688.8070105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-01-14 18:30           ` Wolfram Sang
2014-01-14 18:30             ` Wolfram Sang
2014-02-05 17:18       ` Stephen Warren
2014-02-05 17:18         ` Stephen Warren
2014-01-14 11:58 ` [PATCH 3/7] drivers/gpu/host1x/drm: " Wolfram Sang
     [not found]   ` <1389700739-3696-3-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2014-01-14 13:40     ` Thierry Reding
2014-01-14 13:40       ` Thierry Reding
2014-01-14 11:58 ` [PATCH 4/7] drivers/pci/host: " Wolfram Sang
2014-01-14 11:58   ` Wolfram Sang
2014-01-14 13:17   ` Marek Vasut
2014-01-14 13:17     ` Marek Vasut
2014-01-14 22:32     ` Jingoo Han
2014-01-14 22:32       ` Jingoo Han
2014-01-14 11:58 ` [PATCH 5/7] drivers/usb/dwc3: " Wolfram Sang
2014-01-14 14:15   ` Felipe Balbi
2014-01-14 14:15     ` Felipe Balbi
2014-01-14 11:58 ` [PATCH 6/7] arch/mips/pci: " Wolfram Sang
2014-01-14 11:58 ` [PATCH 7/7] drivers/gpio: " Wolfram Sang
2014-01-15  9:28   ` Linus Walleij
2014-01-15 12:54     ` Sekhar Nori
2014-01-15 13:51       ` Linus Walleij
2014-01-15 14:04         ` Sekhar Nori
2014-01-15 15:50           ` Kevin Hilman
2014-01-15 15:50             ` Kevin Hilman
2014-01-16  4:29             ` Sekhar Nori
2014-02-03 11:30               ` Grygorii Strashko
2014-01-14 12:03 ` [PATCH 1/7] arch/mips/lantiq/xway: " John Crispin
2014-01-14 12:11   ` Wolfram Sang
2014-01-14 12:22     ` John Crispin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.