Messages in this thread | | | Subject | Re: [PATCHiv5 1/1] RTC:driver for Cortina's SOC | From | Joe Perches <> | Date | Fri, 15 May 2015 08:58:24 -0700 |
| |
On Fri, 2015-05-15 at 17:28 +0200, Hans Ulli Kroll wrote: > Driver for the on chip RTC found on Cortina's SoC Gemini.
Trivia:
> diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c [] > +static int gemini_rtc_probe(struct platform_device *pdev) > +{ > + struct gemini_rtc *rtc; > + struct device *dev = &pdev->dev; > + struct resource *res; > + int ret; > + > + rtc = kzalloc(sizeof(*rtc), GFP_KERNEL);
this could/should be devm_kzalloc
| |