lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 5 Mar 2014 16:20:01 +0000
From:	"Opensource [Steve Twiss]" <stwiss.opensource@...semi.com>
To:	Alessandro Zummo <a.zummo@...ertech.it>
CC:	David Dajun Chen <david.chen@...semi.com>,
	LKML <linux-kernel@...r.kernel.org>,
	RTC linux <rtc-linux@...glegroups.com>
Subject: RE: [RFC V1 2/2] rtc: da9063: RTC driver


On: 05 March 2014 15:41 Alessandro Zummo [mailto:a.zummo@...ertech.it] wrote

>-----Original Message-----
>From: Alessandro Zummo [mailto:a.zummo@...ertech.it]
>Sent: 05 March 2014 15:41
>
>On Wed, 5 Mar 2014 12:25:16 +0000
>"Opensource [Steve Twiss]" <stwiss.opensource@...semi.com> wrote:
>
>> +	if (IS_ERR(rtc->rtc_dev)) {
>> +		ret = PTR_ERR(rtc->rtc_dev);
>> +		goto err;
>> +	}
>
> please,
>
>  return PTR_ERR(....)
>

Yes, thanks, I'll make that change

>> +
>> +	irq_alarm = platform_get_irq_byname(pdev, "ALARM");
>> +	ret = devm_request_threaded_irq(&pdev->dev, irq_alarm, NULL,
>> +					da9063_alarm_event,
>> +					IRQF_TRIGGER_LOW | IRQF_ONESHOT,
>> +					"ALARM", rtc);
>> +	if (ret)
>> +		dev_err(&pdev->dev, "Failed to request ALARM IRQ %d: %d\n",
>> +			irq_alarm, ret);
>> +
>> +	da9063_data_to_tm(data, &rtc->alarm_time);
>> +	rtc->rtc_sync = false;
>> +err:
>> +	return ret;
>> +}
>
>   if the interrupt is mandatory you should request it before registering
>  the rtc device. if it isn't, please return 0.

I will make that change also and resubmit later.
Thank you for your quick response.

Regards
Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ