Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932885AbbELRJp (ORCPT ); Tue, 12 May 2015 13:09:45 -0400 Received: from smtprelay0154.hostedemail.com ([216.40.44.154]:38644 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753523AbbELRJm (ORCPT ); Tue, 12 May 2015 13:09:42 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:2895:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:4250:4321:4421:5007:6119:6261:10004:10400:10848:11026:11232:11658:11914:12050:12294:12296:12517:12519:12740:13069:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: chin75_5450e8db16c11 X-Filterd-Recvd-Size: 2118 Message-ID: <1431450578.2884.68.camel@perches.com> Subject: Re: [PATCH 1/1] RTC:driver for Cortina's SOC From: Joe Perches To: Hans Ulli Kroll Cc: Alexandre Belloni , linux-kernel@vger.kernel.org, Paul Bolle Date: Tue, 12 May 2015 10:09:38 -0700 In-Reply-To: <1431449580-18975-2-git-send-email-ulli.kroll@googlemail.com> References: <1431449580-18975-1-git-send-email-ulli.kroll@googlemail.com> <1431449580-18975-2-git-send-email-ulli.kroll@googlemail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1376 Lines: 52 On Tue, 2015-05-12 at 18:53 +0200, Hans Ulli Kroll wrote: > Driver for the on chip RTC found on Cortina's SoC Gemini. [] > Hope I missed nothing ;-) Nothing important enough to stop this being applied as far as I can tell. Just a trivial typo or two > diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c [] > + * Original code for older kernel 2.6.15 are form Stormlinksemi form/from > + * first update from Janos Laube for > 2.6.29 kernels > + * > + * checkpatch fixes and usage off rtc-lib code off/of > +static int gemini_rtc_set_time(struct device *dev, struct rtc_time *tm) > +{ > + struct gemini_rtc *rtc = dev_get_drvdata(dev); > + unsigned int sec, min, hour, day; > + unsigned long offset, time; > + > + if (tm->tm_year >= 2148) /* EPOCH Year + 179 */ > + return -EINVAL; obviously defective hardware... > +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); > + if (unlikely(!rtc)) > + return -ENOMEM; likely unnecessary unlikely -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/