Re: [PATCH 2/2] stmmac: Add IMG Pistachio platform glue layer

2015-04-06 Thread David Miller
From: Andrew Bresticker Date: Thu, 2 Apr 2015 16:46:36 -0700 > +static void *pistachio_dwmac_setup(struct platform_device *pdev) > +{ > + struct pistachio_dwmac_priv_data *pdata; > + > + pdata = devm_kzalloc(>dev, sizeof(*pdata), GFP_KERNEL); > + if (!pdata) > + return

Re: [PATCH 2/2] stmmac: Add IMG Pistachio platform glue layer

2015-04-06 Thread David Miller
From: Andrew Bresticker abres...@chromium.org Date: Thu, 2 Apr 2015 16:46:36 -0700 +static void *pistachio_dwmac_setup(struct platform_device *pdev) +{ + struct pistachio_dwmac_priv_data *pdata; + + pdata = devm_kzalloc(pdev-dev, sizeof(*pdata), GFP_KERNEL); + if (!pdata) +

[PATCH 2/2] stmmac: Add IMG Pistachio platform glue layer

2015-04-02 Thread Andrew Bresticker
At the moment, the only additional setup required for the DWMAC on the IMG Pistachio SoC is to request and enable a separate gate clock for the register interface. Signed-off-by: Andrew Bresticker Signed-off-by: Govindraj Raja Cc: James Hartley --- drivers/net/ethernet/stmicro/stmmac/Makefile

[PATCH 2/2] stmmac: Add IMG Pistachio platform glue layer

2015-04-02 Thread Andrew Bresticker
At the moment, the only additional setup required for the DWMAC on the IMG Pistachio SoC is to request and enable a separate gate clock for the register interface. Signed-off-by: Andrew Bresticker abres...@chromium.org Signed-off-by: Govindraj Raja govindraj.r...@imgtec.com Cc: James Hartley