]> git.karo-electronics.de Git - linux-beck.git/commitdiff
stmmac: dwmac-sti: remove useless of_node check
authorJoachim Eastwood <manabian@gmail.com>
Fri, 4 Nov 2016 17:54:05 +0000 (18:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 03:00:15 +0000 (22:00 -0500)
Since dwmac-sti is a DT only driver checking for OF node is not necessary.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Tested-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c

index 58c05acc2aabbdf63419874605ae11af298471ca..075ed425d39b8e5f7c059eba050f3d51de72e2b7 100644 (file)
@@ -270,9 +270,6 @@ static int sti_dwmac_parse_data(struct sti_dwmac *dwmac,
        struct regmap *regmap;
        int err;
 
-       if (!np)
-               return -EINVAL;
-
        /* clk selection from extra syscfg register */
        dwmac->clk_sel_reg = -ENXIO;
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sti-clkconf");