Skip to content

Commit

Permalink
spi/bfin_spi: drop extra memory we don't need
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger committed Oct 18, 2010
1 parent b9f139a commit 2a04513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,14 +1267,14 @@ static int __init bfin_spi_probe(struct platform_device *pdev)
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;
Expand Down

0 comments on commit 2a04513

Please sign in to comment.