From patchwork Sun Jan 10 12:14:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsODwqltZXRoIE3Dg8KhcnRvbg==?= X-Patchwork-Id: 72046 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0AEfeRG027972 for ; Sun, 10 Jan 2010 14:41:40 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NTyz4-0005qq-FE; Sun, 10 Jan 2010 14:41:38 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NTyz3-0005ql-8g for spi-devel-general@lists.sourceforge.net; Sun, 10 Jan 2010 14:41:37 +0000 X-ACL-Warn: Received: from mail01d.mail.t-online.hu ([84.2.42.6]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NTyz0-0000Y0-VB for spi-devel-general@lists.sourceforge.net; Sun, 10 Jan 2010 14:41:37 +0000 X-Authuid: nmarci Received: from [192.168.1.64] (dsl5402C42F.pool.t-online.hu [84.2.196.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id 6748A7586AF; Sun, 10 Jan 2010 13:12:04 +0100 (CET) Message-ID: <4B49C496.2090507@freemail.hu> Date: Sun, 10 Jan 2010 13:14:14 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: David Brownell , Grant Likely X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32711; Body=6 Fuz1=6 Fuz2=6 X-Spam-Score: -1.0 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NTyz0-0000Y0-VB Cc: spi-devel-general@lists.sourceforge.net, Julia Lawall , LKML , cocci@diku.dk Subject: [spi-devel-general] [PATCH] spi: make Open Firmware device id constant X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff -u -p a/drivers/spi/xilinx_spi_of.c b/drivers/spi/xilinx_spi_of.c --- a/drivers/spi/xilinx_spi_of.c 2010-01-07 19:08:45.000000000 +0100 +++ b/drivers/spi/xilinx_spi_of.c 2010-01-08 09:11:27.000000000 +0100 @@ -99,7 +99,7 @@ static int __exit xilinx_spi_of_remove(s return xilinx_spi_remove(op); } -static struct of_device_id xilinx_spi_of_match[] = { +static const struct of_device_id xilinx_spi_of_match[] = { { .compatible = "xlnx,xps-spi-2.00.a", }, { .compatible = "xlnx,xps-spi-2.00.b", }, {} diff -u -p a/drivers/spi/mpc52xx_spi.c b/drivers/spi/mpc52xx_spi.c --- a/drivers/spi/mpc52xx_spi.c 2010-01-07 19:08:45.000000000 +0100 +++ b/drivers/spi/mpc52xx_spi.c 2010-01-08 09:11:55.000000000 +0100 @@ -550,7 +550,7 @@ static int __devexit mpc52xx_spi_remove( return 0; } -static struct of_device_id mpc52xx_spi_match[] __devinitdata = { +static const struct of_device_id mpc52xx_spi_match[] __devinitconst = { { .compatible = "fsl,mpc5200-spi", }, {} }; diff -u -p a/drivers/spi/mpc52xx_psc_spi.c b/drivers/spi/mpc52xx_psc_spi.c --- a/drivers/spi/mpc52xx_psc_spi.c 2010-01-07 19:08:45.000000000 +0100 +++ b/drivers/spi/mpc52xx_psc_spi.c 2010-01-08 09:13:23.000000000 +0100 @@ -503,7 +503,7 @@ static int __exit mpc52xx_psc_spi_of_rem return mpc52xx_psc_spi_do_remove(&op->dev); } -static struct of_device_id mpc52xx_psc_spi_of_match[] = { +static const struct of_device_id mpc52xx_psc_spi_of_match[] = { { .compatible = "fsl,mpc5200-psc-spi", }, { .compatible = "mpc5200-psc-spi", }, /* old */ {} diff -u -p a/drivers/spi/spi_ppc4xx.c b/drivers/spi/spi_ppc4xx.c --- a/drivers/spi/spi_ppc4xx.c 2009-12-03 04:51:21.000000000 +0100 +++ b/drivers/spi/spi_ppc4xx.c 2010-01-08 09:13:36.000000000 +0100 @@ -578,7 +578,7 @@ static int __exit spi_ppc4xx_of_remove(s return 0; } -static struct of_device_id spi_ppc4xx_of_match[] = { +static const struct of_device_id spi_ppc4xx_of_match[] = { { .compatible = "ibm,ppc4xx-spi", }, {}, };