lkml.org 
[lkml]   [2012]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] add LED driver for PCA9663 I2C chip
On Thu,  2 Feb 2012 22:41:13 +0100
Peter Meerwald <pmeerw@pmeerw.net> wrote:

> From: Peter Meerwald <p.meerwald@bct-electronic.com>
>
> simple driver for the PCA9633 I2C chip supporting four LEDs and
> 255 brightness levels
>
>
> ...
>
> +
> + pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);

err,

--- a/drivers/leds/leds-pca9633.c~drivers-leds-add-driver-for-pca9663-i2c-chip-fix
+++ a/drivers/leds/leds-pca9633.c
@@ -110,7 +110,7 @@ static int __devinit pca9633_probe(struc
}
}

- pca9633 = kcalloc(sizeof(*pca9633) * 4, GFP_KERNEL);
+ pca9633 = kcalloc(sizeof(*pca9633), 4, GFP_KERNEL);
if (!pca9633)
return -ENOMEM;

> ...
>


\
 
 \ /
  Last update: 2012-02-02 23:11    [W:0.031 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site