Revision 4e1f86509732ccc39938974db0612d14afbca953 authored by Axel Lin on 25 November 2010, 07:07:25 UTC, committed by Mark Brown on 25 November 2010, 11:08:13 UTC
Add missing platform_device_put() if platform_device_add() failed. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 3b6bc35
lcm.c
#include <linux/kernel.h>
#include <linux/gcd.h>
#include <linux/module.h>
/* Lowest common multiple */
unsigned long lcm(unsigned long a, unsigned long b)
{
if (a && b)
return (a * b) / gcd(a, b);
else if (b)
return b;
return a;
}
EXPORT_SYMBOL_GPL(lcm);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...