aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-23 21:28:54 -0400
committerMike Frysinger <vapier@gentoo.org>2010-10-18 02:49:34 -0400
commit2a045131db69c207b9e3f9614b2c9b0f2e82bcb7 (patch)
tree84c04d8da0cc3a900fec5f6483a07a399b18fc3d /drivers/spi
parentb9f139a7a6a8b24e61ad94c3334eb26f34a4cb63 (diff)
spi/bfin_spi: drop extra memory we don't need
The driver that we based ours on uses a little extra memory behind the normal driver state, but we don't. So drop this useless bit of memory. Reported-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_bfin5xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 9a1801b8bf00..ffff0998e557 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -1267,14 +1267,14 @@ static int __init bfin_spi_probe(struct platform_device *pdev)
1267 struct device *dev = &pdev->dev; 1267 struct device *dev = &pdev->dev;
1268 struct bfin5xx_spi_master *platform_info; 1268 struct bfin5xx_spi_master *platform_info;
1269 struct spi_master *master; 1269 struct spi_master *master;
1270 struct master_data *drv_data = 0; 1270 struct master_data *drv_data;
1271 struct resource *res; 1271 struct resource *res;
1272 int status = 0; 1272 int status = 0;
1273 1273
1274 platform_info = dev->platform_data; 1274 platform_info = dev->platform_data;
1275 1275
1276 /* Allocate master with space for drv_data */ 1276 /* Allocate master with space for drv_data */
1277 master = spi_alloc_master(dev, sizeof(struct master_data) + 16); 1277 master = spi_alloc_master(dev, sizeof(*drv_data));
1278 if (!master) { 1278 if (!master) {
1279 dev_err(&pdev->dev, "can not alloc spi_master\n"); 1279 dev_err(&pdev->dev, "can not alloc spi_master\n");
1280 return -ENOMEM; 1280 return -ENOMEM;