linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH 3/7] drivers/gpu/host1x/drm: don't check resource with devm_ioremap_resource
           [not found] <1389700739-3696-1-git-send-email-wsa@the-dreams.de>
           [not found] ` <1389700739-3696-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
    @ 2014-01-14 11:58 ` Wolfram Sang
           [not found]   ` <1389700739-3696-3-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
      1 sibling, 1 reply; 7+ messages in thread
    From: Wolfram Sang @ 2014-01-14 11:58 UTC (permalink / raw)
      To: linux-kernel
      Cc: Wolfram Sang, Thierry Reding, Terje Bergström, David Airlie,
    	Stephen Warren, dri-devel, linux-tegra
    
    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>
    Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
    ---
    
    Should go via subsystem tree
    
     drivers/gpu/drm/tegra/hdmi.c | 3 ---
     1 file changed, 3 deletions(-)
    
    diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
    index 0cd9bc2..1650fb3 100644
    --- a/drivers/gpu/drm/tegra/hdmi.c
    +++ b/drivers/gpu/drm/tegra/hdmi.c
    @@ -1375,9 +1375,6 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
     		return err;
     
     	regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    -	if (!regs)
    -		return -ENXIO;
    -
     	hdmi->regs = devm_ioremap_resource(&pdev->dev, regs);
     	if (IS_ERR(hdmi->regs))
     		return PTR_ERR(hdmi->regs);
    -- 
    1.8.5.1
    
    ^ permalink raw reply related	[flat|nested] 7+ messages in thread

  • end of thread, other threads:[~2014-02-05 17:18 UTC | newest]
    
    Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1389700739-3696-1-git-send-email-wsa@the-dreams.de>
         [not found] ` <1389700739-3696-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
    2014-01-14 11:58   ` [PATCH 2/7] drivers/amba: don't check resource with devm_ioremap_resource 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 17:40       ` Stephen Warren
         [not found]         ` <52D57688.8070105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
    2014-01-14 18:30           ` Wolfram Sang
    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
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).