[PATCH] gta03-pca9632.patch

michael trimarchi at gandalf.sssup.it
Mon Sep 15 14:54:08 CEST 2008


matt_hsu wrote:
> pca9632 is a LED driver in gta03.
> This patch patch adds the support for this chip.
>
> Matt
+{
+ struct i2c_client *new_client;
+ struct pca9632_data *pca;
+ int err = 0;
+
+ if (!(pca == kzalloc(sizeof(struct pca9632_data), GFP_KERNEL))) {
+ err = -ENOMEM;
+ goto exit;
+ }
+
+ mutex_init(&pca->lock);

Same problem :) *kzalloc*

Michael




More information about the openmoko-kernel mailing list