RE: [PATCH V13 2/7] net: sxgbe: add basic framework for Samsung 10Gb ethernet driver

2014-03-25 Thread Byungho An
Francois Romieu : > Byungho An : > [...] > > How about below ? > > The for loops should be unrolled. > > (style: no need to join before branching) > > I must go to work, so you'll have to fill the dots in the code below: > > priv = sxgbe_drv_probe(&(pdev->dev), plat_dat, addr); >

Re: [PATCH V13 2/7] net: sxgbe: add basic framework for Samsung 10Gb ethernet driver

2014-03-25 Thread Francois Romieu
Byungho An : [...] > How about below ? The for loops should be unrolled. (style: no need to join before branching) I must go to work, so you'll have to fill the dots in the code below: priv = sxgbe_drv_probe(&(pdev->dev), plat_dat, addr); if (!priv) { pr_err("%s

RE: [PATCH V13 2/7] net: sxgbe: add basic framework for Samsung 10Gb ethernet driver

2014-03-24 Thread Byungho An
Francois Romieu : > > +static int sxgbe_platform_probe(struct platform_device *pdev) > [...] > > + /* Get the SXGBE common INT information */ > > + priv->irq = irq_of_parse_and_map(node, 0); > > + if (priv->irq <= 0) { > > + dev_err(dev, "sxgbe common irq parsing failed\n"); > > +

Re: [PATCH V13 2/7] net: sxgbe: add basic framework for Samsung 10Gb ethernet driver

2014-03-24 Thread Francois Romieu
> +static int sxgbe_platform_probe(struct platform_device *pdev) [...] > + /* Get the SXGBE common INT information */ > + priv->irq = irq_of_parse_and_map(node, 0); > + if (priv->irq <= 0) { > + dev_err(dev, "sxgbe common irq parsing failed\n"); > + irq_dispose_