[APPLIED] [RFT/RFC/PATCH 06/10] cbus: switch to kzalloc

2009-12-08 Thread Tony Lindgren
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: cbus

Initial commit ID (Likely to change): b57560b33964a00931ebde9deb6d99eb5172f1c2

PatchWorks
http://patchwork.kernel.org/patch/64369/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=b57560b33964a00931ebde9deb6d99eb5172f1c2


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RFT/RFC/PATCH 06/10] cbus: switch to kzalloc

2009-12-02 Thread Felipe Balbi
change kmalloc() + memset() to kzalloc(), no functional
changes.

Signed-off-by: Felipe Balbi felipe.ba...@nokia.com
---
 drivers/cbus/cbus.c |4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c
index c80cede..0bcc211 100644
--- a/drivers/cbus/cbus.c
+++ b/drivers/cbus/cbus.c
@@ -224,12 +224,10 @@ int __init cbus_bus_init(void)
struct cbus_host *chost;
int ret;
 
-   chost = kmalloc(sizeof (*chost), GFP_KERNEL);
+   chost = kzalloc(sizeof (*chost), GFP_KERNEL);
if (chost == NULL)
return -ENOMEM;
 
-   memset(chost, 0, sizeof (*chost));
-
spin_lock_init(chost-lock);
 
/* REVISIT: Pass these from board-*.c files in platform_data */
-- 
1.6.6.rc0

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RFT/RFC/PATCH 06/10] cbus: switch to kzalloc

2009-12-02 Thread Felipe Balbi
change kmalloc() + memset() to kzalloc(), no functional
changes.

Signed-off-by: Felipe Balbi felipe.ba...@nokia.com
---
 drivers/cbus/cbus.c |4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c
index c80cede..0bcc211 100644
--- a/drivers/cbus/cbus.c
+++ b/drivers/cbus/cbus.c
@@ -224,12 +224,10 @@ int __init cbus_bus_init(void)
struct cbus_host *chost;
int ret;
 
-   chost = kmalloc(sizeof (*chost), GFP_KERNEL);
+   chost = kzalloc(sizeof (*chost), GFP_KERNEL);
if (chost == NULL)
return -ENOMEM;
 
-   memset(chost, 0, sizeof (*chost));
-
spin_lock_init(chost-lock);
 
/* REVISIT: Pass these from board-*.c files in platform_data */
-- 
1.6.6.rc0

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html