From 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 16 May 2024 03:11:33 +0000 Subject: [PATCH] AX88772C_eeprom and ax8872c build together --- kernel/arch/sh/mm/consistent.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/arch/sh/mm/consistent.c b/kernel/arch/sh/mm/consistent.c index 792f361..0de206c 100644 --- a/kernel/arch/sh/mm/consistent.c +++ b/kernel/arch/sh/mm/consistent.c @@ -43,8 +43,7 @@ r = pdev->resource + pdev->num_resources - 1; if (r->flags) { - pr_warning("%s: unable to find empty space for resource\n", - name); + pr_warn("%s: unable to find empty space for resource\n", name); return -EINVAL; } @@ -54,11 +53,9 @@ buf = dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL); if (!buf) { - pr_warning("%s: unable to allocate memory\n", name); + pr_warn("%s: unable to allocate memory\n", name); return -ENOMEM; } - - memset(buf, 0, memsize); r->flags = IORESOURCE_MEM; r->start = dma_handle; -- Gitblit v1.6.2