On Monday, September 10, 2012 1:31 PM Jingoo Han wrote > > On Wednesday, August 08, 2012 9:15 PM Phil Edworthy wrote > > Hi Phil Edworthy, > > I reviewed your patch. > Please refer to my comments. > Good luck. > > Best regards, > Jingoo Han > > > > > The vdc4 display hardware is found on the sh7269 device. > > Signed-off-by: Phil Edworthy <phil.edworthy@xxxxxxxxxxx> > > Please insert one line between the commit message and Signed-off-by. > > > --- > > drivers/video/Kconfig | 10 + > > drivers/video/Makefile | 1 + > > drivers/video/ren_vdc4fb.c | 653 ++++++++++++++++++++++++++++++++++++++++++++ > > include/video/ren_vdc4fb.h | 19 ++ > > 4 files changed, 683 insertions(+), 0 deletions(-) > > create mode 100644 drivers/video/ren_vdc4fb.c > > create mode 100644 include/video/ren_vdc4fb.h > > ..... > > + > > +static int ren_vdc4_setup_clocks(struct platform_device *pdev, > > + int clock_source, > > + struct ren_vdc4_priv *priv) > > +{ > > + priv->clk = clk_get(&pdev->dev, "vdc4"); > > How about using devm_clk_get() instead of kzalloc()? > It makes the code simpler. Sorry, it's a typo. It is not kzalloc(), but clk_get(). > > > + if (IS_ERR(priv->clk)) { > > + dev_err(&pdev->dev, "cannot get clock \"vdc4\"\n"); > > + return PTR_ERR(priv->clk); > > + } > > + > > + if (clock_source == VDC4_PERI_CLK) { > > + priv->dot_clk = clk_get(&pdev->dev, "peripheral_clk"); > > How about using devm_clk_get() instead of kzalloc()? > It makes the code simpler. Same as above. > > -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html