From patchwork Sat Aug 6 13:26:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shaoyan X-Patchwork-Id: 1041642 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p76DT7dc019796 for ; Sat, 6 Aug 2011 13:29:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755654Ab1HFN3G (ORCPT ); Sat, 6 Aug 2011 09:29:06 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:35382 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755311Ab1HFN3F (ORCPT ); Sat, 6 Aug 2011 09:29:05 -0400 Received: by pzk37 with SMTP id 37so5470840pzk.1 for ; Sat, 06 Aug 2011 06:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=bKVdtEio7xt5FUj3gOQljey/VagC/PVBx+clKO1BZ/0=; b=KuqriC8sw8P1jcZN8YYIyjc2M8cY68KF/xaF8CDkB26iwSLJo+Qac9DfCYaN3GXLk1 wv9MSizjWTa+swnLGiYEaHIBqtX7y/VfosafFmIAK9c4KkAcdHkxH5dWKYYx9uWaM14g GyJYSW9ATDnvl0BLQwIHfS1HCnZCmWX3WoSFs= Received: by 10.142.187.3 with SMTP id k3mr3266838wff.391.1312637344813; Sat, 06 Aug 2011 06:29:04 -0700 (PDT) Received: from localhost.localdomain ([59.64.158.108]) by mx.google.com with ESMTPS id t8sm1170742pbg.14.2011.08.06.06.29.02 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Aug 2011 06:29:03 -0700 (PDT) From: stufever@gmail.com To: linux-kernel@vger.kernel.org Cc: linux-fbdev@vger.kernel.org, lethal@linux-sh.org, FlorianSchandinat@gmx.de, Wang Shaoyan Subject: [PATCH] viafb: fix pointer type missmatch Date: Sat, 6 Aug 2011 21:26:20 +0800 Message-Id: <1312637180-6107-1-git-send-email-wangshaoyan.pt@taobao.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 06 Aug 2011 13:29:07 +0000 (UTC) From: Wang Shaoyan drivers/video/via/via-core.c: In function 'via_pci_probe': drivers/video/via/via-core.c:691: warning: assignment discards qualifiers from pointer target type Signed-off-by: Wang Shaoyan --- drivers/video/via/via-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/via/via-core.c b/drivers/video/via/via-core.c index eb112b6..dd58b53 100644 --- a/drivers/video/via/via-core.c +++ b/drivers/video/via/via-core.c @@ -35,7 +35,7 @@ static struct via_port_cfg adap_configs[] = { * The OLPC XO-1.5 puts the camera power and reset lines onto * GPIO 2C. */ -static const struct via_port_cfg olpc_adap_configs[] = { +static struct via_port_cfg olpc_adap_configs[] = { [VIA_PORT_26] = { VIA_PORT_I2C, VIA_MODE_I2C, VIASR, 0x26 }, [VIA_PORT_31] = { VIA_PORT_I2C, VIA_MODE_I2C, VIASR, 0x31 }, [VIA_PORT_25] = { VIA_PORT_GPIO, VIA_MODE_GPIO, VIASR, 0x25 },