]> err.no Git - linux-2.6/blobdiff - arch/blackfin/mm/blackfin_sram.c
Merge git://git.linux-nfs.org/projects/trondmy/nfs-2.6
[linux-2.6] / arch / blackfin / mm / blackfin_sram.c
index 16c6169ed01bbe3357931d184d9532e5ac4649ab..3246f91c7baa40bc87fc30436b9ec7022092b356 100644 (file)
@@ -27,7 +27,6 @@
  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <linux/autoconf.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -402,7 +401,7 @@ EXPORT_SYMBOL(l1_data_sram_free);
 
 void *l1_inst_sram_alloc(size_t size)
 {
-#if L1_DATA_A_LENGTH != 0
+#if L1_CODE_LENGTH != 0
        unsigned flags;
        void *addr;
 
@@ -521,10 +520,9 @@ void *sram_alloc_with_lsl(size_t size, unsigned long flags)
        struct sram_list_struct *lsl = NULL;
        struct mm_struct *mm = current->mm;
 
-       lsl = kmalloc(sizeof(struct sram_list_struct), GFP_KERNEL);
+       lsl = kzalloc(sizeof(struct sram_list_struct), GFP_KERNEL);
        if (!lsl)
                return NULL;
-       memset(lsl, 0, sizeof(*lsl));
 
        if (flags & L1_INST_SRAM)
                addr = l1_inst_sram_alloc(size);