Browse Source

Merge remote-tracking branch 'spi/fix/pxa' into spi-linus

Mark Brown 12 years ago
parent
commit
2f5a5c1be8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      drivers/spi/spi-pxa2xx-dma.c
  2. 1 1
      drivers/spi/spi-pxa2xx.c

+ 1 - 1
drivers/spi/spi-pxa2xx-dma.c

@@ -59,7 +59,7 @@ static int pxa2xx_spi_map_dma_buffer(struct driver_data *drv_data,
 		int ret;
 
 		sg_free_table(sgt);
-		ret = sg_alloc_table(sgt, nents, GFP_KERNEL);
+		ret = sg_alloc_table(sgt, nents, GFP_ATOMIC);
 		if (ret)
 			return ret;
 	}

+ 1 - 1
drivers/spi/spi-pxa2xx.c

@@ -1075,7 +1075,7 @@ pxa2xx_spi_acpi_get_pdata(struct platform_device *pdev)
 	    acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev))
 		return NULL;
 
-	pdata = devm_kzalloc(&pdev->dev, sizeof(*ssp), GFP_KERNEL);
+	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
 	if (!pdata) {
 		dev_err(&pdev->dev,
 			"failed to allocate memory for platform data\n");