From patchwork Wed Feb 20 17:25:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2168631 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id ADBBFDF230 for ; Wed, 20 Feb 2013 17:55:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933772Ab3BTRz5 (ORCPT ); Wed, 20 Feb 2013 12:55:57 -0500 Received: from mail-yh0-f42.google.com ([209.85.213.42]:46822 "EHLO mail-yh0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933811Ab3BTRz4 (ORCPT ); Wed, 20 Feb 2013 12:55:56 -0500 Received: by mail-yh0-f42.google.com with SMTP id w49so1493445yhw.29 for ; Wed, 20 Feb 2013 09:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=/AaoRw1UUfpwr8Ex3U25eYIvfIY76FS/VDQVDlHFd+8=; b=KGdOXR72VnBWOL1YzZrPmMkh0tZ+wHAyScd7tYBTKoa6iYLQY8sFXc+lJ+2T0z3MXB HwL4mYMrjodzCWqx70gjhywg5CK/8TPlk6IFfzTViJW4/C6StG00xGi5Wxi5eSGUe+N0 I/Ph8yUYhMKAQuAGnHPs1Ls9ZvveXqm1cy9mI+6ZhezB0Td68k0wl3IZlrE23aEFu02a uOQ5tobMHOpZ332CGQawu2v+JEGawNko7fl/PFccZYEegzm0p6Og7LueILO5HSTJisGI SViVezgaxq1J0WVdRjOOMU1TqvH0SOH0SR4RTOIYapWJ2jRdIrZCgYav5d1h1fd4cZk6 H/Mw== X-Received: by 10.236.69.99 with SMTP id m63mr37727574yhd.46.1361381114346; Wed, 20 Feb 2013 09:25:14 -0800 (PST) Received: from localhost.localdomain ([187.106.37.155]) by mx.google.com with ESMTPS id p7sm36385798anl.20.2013.02.20.09.25.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Feb 2013 09:25:13 -0800 (PST) From: Fabio Estevam To: akpm@linux-foundation.org Cc: FlorianSchandinat@gmx.de, linux-fbdev@vger.kernel.org, s.hauer@pengutronix.de, g.liakhovetski@gmx.de, Fabio Estevam Subject: [PATCH] video: mx3fb: Use NULL for pointer Date: Wed, 20 Feb 2013 14:25:01 -0300 Message-Id: <1361381101-21325-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Fabio Estevam Fix the following sparse error: drivers/video/mx3fb.c:1309:28: warning: Using plain integer as NULL pointer Signed-off-by: Fabio Estevam Acked-by: Guennadi Liakhovetski --- drivers/video/mx3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c index 7368872..cfdb380 100644 --- a/drivers/video/mx3fb.c +++ b/drivers/video/mx3fb.c @@ -1306,7 +1306,7 @@ static int mx3fb_unmap_video_memory(struct fb_info *fbi) dma_free_writecombine(fbi->device, fbi->fix.smem_len, fbi->screen_base, fbi->fix.smem_start); - fbi->screen_base = 0; + fbi->screen_base = NULL; mutex_lock(&fbi->mm_lock); fbi->fix.smem_start = 0; fbi->fix.smem_len = 0;