Title: [7445] trunk/drivers/spi/spi_bfin5xx.c: spi_bfin5xx: drop excess memory inherited from driver we based our code on
- Revision
- 7445
- Author
- vapier
- Date
- 2009-09-23 21:28:54 -0400 (Wed, 23 Sep 2009)
Log Message
spi_bfin5xx: drop excess memory inherited from driver we based our code on
Modified Paths
Diff
Modified: trunk/drivers/spi/spi_bfin5xx.c (7444 => 7445)
--- trunk/drivers/spi/spi_bfin5xx.c 2009-09-24 01:27:47 UTC (rev 7444)
+++ trunk/drivers/spi/spi_bfin5xx.c 2009-09-24 01:28:54 UTC (rev 7445)
@@ -1356,14 +1356,14 @@
struct device *dev = &pdev->dev;
struct bfin5xx_spi_master *platform_info;
struct spi_master *master;
- struct master_data *drv_data = 0;
+ struct master_data *drv_data;
struct resource *res;
int status = 0;
platform_info = dev->platform_data;
/* Allocate master with space for drv_data */
- master = spi_alloc_master(dev, sizeof(struct master_data) + 16);
+ master = spi_alloc_master(dev, sizeof(*drv_data));
if (!master) {
dev_err(&pdev->dev, "can not alloc spi_master\n");
return -ENOMEM;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits