From patchwork Tue Feb 10 12:37:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5806891 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 55E949F37F for ; Tue, 10 Feb 2015 12:38:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 874572012E for ; Tue, 10 Feb 2015 12:38:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B536520115 for ; Tue, 10 Feb 2015 12:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755771AbbBJMiD (ORCPT ); Tue, 10 Feb 2015 07:38:03 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36050 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755629AbbBJMhn (ORCPT ); Tue, 10 Feb 2015 07:37:43 -0500 Received: by pdjp10 with SMTP id p10so28849508pdj.3; Tue, 10 Feb 2015 04:37:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=StqaxyfswNT9p/IvGhUvfBs8YB4iuKxqbSulFGVb25s=; b=bakC0iGZGN9GotGGQ0KND4TdKtRzA/SX5/OpHrth0krXsIphZn4hRo7LEfoKxIq+rd dMziYg7XfilMRKEIZR8PErmzrmNDW7lQa5qgGnKojwQiLOwaWPoZ2eWy6dvf5J+SZQQ/ VPxcjhs1409A4m4sSds471guuOhJv1OcDg/PKY3tWVzApvZWMmgPdz2nYUKKnG27c8P+ Ywslgh1QeUhoW57FQahgNKPfKYIs/BJi8Nvw963nz8YMQ1+nStw2OrnQiVWE96qAV+73 bs6y/4xW4dkPZBUg18j5bsVTzTyvyv9JxsQAtNWgNJSUoGrcmeL0o7ugssVwwZAol/TO ghtA== X-Received: by 10.66.90.193 with SMTP id by1mr37161730pab.56.1423571862938; Tue, 10 Feb 2015 04:37:42 -0800 (PST) Received: from localhost.localdomain ([122.169.135.72]) by mx.google.com with ESMTPSA id i10sm456738pbq.55.2015.02.10.04.37.40 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Feb 2015 04:37:42 -0800 (PST) From: Sudip Mukherjee To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Sudip Mukherjee , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: sm501fb: use memset_io Date: Tue, 10 Feb 2015 18:07:32 +0530 Message-Id: <1423571852-14511-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP we should really be using memset_io() instead of using memset() as this is actually io space mapped into our memory. Signed-off-by: Sudip Mukherjee --- it has only been build tested. I only have the hardware of sm712 and sm750. drivers/video/fbdev/sm501fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb.c index e8d4121..d0a4e2f 100644 --- a/drivers/video/fbdev/sm501fb.c +++ b/drivers/video/fbdev/sm501fb.c @@ -1606,7 +1606,7 @@ static int sm501fb_start(struct sm501fb_info *info, info->fbmem_len = resource_size(res); /* clear framebuffer memory - avoids garbage data on unused fb */ - memset(info->fbmem, 0, info->fbmem_len); + memset_io(info->fbmem, 0, info->fbmem_len); /* clear palette ram - undefined at power on */ for (k = 0; k < (256 * 3); k++)