From: Mark Brown Date: Fri, 3 Oct 2014 15:33:42 +0000 (+0100) Subject: Merge remote-tracking branches 'spi/topic/pl022', 'spi/topic/pxa2xx', 'spi/topic... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bab4d751f70bcecdcaad56dad9785224a5a6f9db;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git Merge remote-tracking branches 'spi/topic/pl022', 'spi/topic/pxa2xx', 'spi/topic/rspi', 'spi/topic/sh-msiof' and 'spi/topic/sirf' into spi-next --- bab4d751f70bcecdcaad56dad9785224a5a6f9db diff --cc drivers/spi/spi-sirf.c index 6f0602fd7401,95ac276eaafe,95ac276eaafe,95ac276eaafe,95ac276eaafe,adbabbdfc7f0..39e2c0a55a28 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c @@@@@@@ -641,19 -638,19 -638,19 -638,19 -638,19 -643,10 +646,10 @@@@@@@ static int spi_sirfsoc_probe(struct pla struct sirfsoc_spi *sspi; struct spi_master *master; struct resource *mem_res; ----- int num_cs, cs_gpio, irq; ----- int i; ----- int ret; - - ret = of_property_read_u32(pdev->dev.of_node, - "sirf,spi-num-chipselects", &num_cs); - if (ret < 0) { - dev_err(&pdev->dev, "Unable to get chip select number\n"); - goto err_cs; - } +++++ int irq; +++++ int i, ret; ---- ret = of_property_read_u32(pdev->dev.of_node, ---- "sirf,spi-num-chipselects", &num_cs); ---- if (ret < 0) { ---- dev_err(&pdev->dev, "Unable to get chip select number\n"); ---- goto err_cs; ---- } ---- ----- master = spi_alloc_master(&pdev->dev, ----- sizeof(*sspi) + sizeof(int) * num_cs); +++++ master = spi_alloc_master(&pdev->dev, sizeof(*sspi)); if (!master) { dev_err(&pdev->dev, "Unable to allocate SPI master\n"); return -ENOMEM;