https://github.com/torvalds/linux
Revision 437ea90cc3afdca5229b41c6b1d38c4842756cb9 authored by Devendra Naga on 31 July 2012, 23:46:24 UTC, committed by Linus Torvalds on 01 August 2012, 01:42:50 UTC
devm_kzalloc() doesn't need a matching devm_kfree(), the freeing mechanism
will trigger when driver unloads.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Ashish Jangam <ashish.jangam@kpitcummins.com>
Cc: David Dajun Chen <dchen@diasemi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7ead551
Raw File
Tip revision: 437ea90cc3afdca5229b41c6b1d38c4842756cb9 authored by Devendra Naga on 31 July 2012, 23:46:24 UTC
rtc/rtc-88pm80x: remove unneed devm_kfree
Tip revision: 437ea90
reciprocal_div.c
#include <asm/div64.h>
#include <linux/reciprocal_div.h>
#include <linux/export.h>

u32 reciprocal_value(u32 k)
{
	u64 val = (1LL << 32) + (k - 1);
	do_div(val, k);
	return (u32)val;
}
EXPORT_SYMBOL(reciprocal_value);
back to top