From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Daney Subject: Re: [PATCH] spi: Remove explictly set bus_num and num_chipselect to default setting Date: Tue, 11 Feb 2014 10:28:08 -0800 Message-ID: <52FA6BB8.6030503@caviumnetworks.com> References: <1392127819.9833.3.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Mark Brown , Chris Boot , =?UTF-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , "Thomas Langer" , David Daney , Kuninori Morimoto , Laxman Dewangan , Stephen Warren , Sourav Poddar , To: Axel Lin Return-path: In-Reply-To: <1392127819.9833.3.camel@phoenix> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On 02/11/2014 06:10 AM, Axel Lin wrote: > The purpose of commit 1e8a52e18cfb > "spi: By default setup spi_masters with 1 chipselect and dynamics bus= number" > is to avoid setting default value for bus_num and num_chipselect in s= pi master > drivers. So let's remove the duplicate code. It seems good to me, so ... > > Cc: Chris Boot > Cc: Uwe Kleine-K=C3=B6nig > Cc: Thomas Langer > Cc: David Daney > Cc: Kuninori Morimoto > Cc: Laxman Dewangan > Cc: Stephen Warren > Cc: Sourav Poddar > Signed-off-by: Axel Lin > --- > drivers/spi/spi-bcm2835.c | 1 - > drivers/spi/spi-efm32.c | 4 ---- > drivers/spi/spi-falcon.c | 2 -- > drivers/spi/spi-octeon.c | 2 -- > drivers/spi/spi-sh-hspi.c | 1 - > drivers/spi/spi-tegra114.c | 1 - > drivers/spi/spi-tegra20-sflash.c | 1 - > drivers/spi/spi-tegra20-slink.c | 1 - > drivers/spi/spi-ti-qspi.c | 1 - > 9 files changed, 14 deletions(-) > [...] > diff --git a/drivers/spi/spi-octeon.c b/drivers/spi/spi-octeon.c > index cf88974..a4805f2 100644 > --- a/drivers/spi/spi-octeon.c > +++ b/drivers/spi/spi-octeon.c > @@ -257,8 +257,6 @@ static int octeon_spi_probe(struct platform_devic= e *pdev) > p->register_base =3D (u64)devm_ioremap(&pdev->dev, res_mem->start, > resource_size(res_mem)); > > - /* Dynamic bus numbering */ > - master->bus_num =3D -1; > master->num_chipselect =3D 4; > master->mode_bits =3D SPI_CPHA | > SPI_CPOL | =2E.. this bit: Acked-By: David Daney -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html