]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
sh-pfc: Fix compiler warning when BUG()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 26 Mar 2013 00:44:52 +0000 (01:44 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 2 Apr 2013 02:09:45 +0000 (11:09 +0900)
The sh_pfc_phys_to_virt() function ends with a BUG() statement without a
return. When CONFIG_BUG isn't set the function will thus have no return
value. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/core.c

index feef89792568a8d8453688ecc97c295402508e8d..97e6ea3147e088171718e0dae8eb4e195bc595c6 100644 (file)
@@ -72,6 +72,7 @@ static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc,
        }
 
        BUG();
+       return NULL;
 }
 
 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin)