Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328603
b: refs/heads/master
c: b4b8482
h: refs/heads/master
i:
  328601: 8fe236d
  328599: da88b99
v: v3
  • Loading branch information
Roland Stigge authored and Mark Brown committed Sep 5, 2012
1 parent c2bbdfd commit 0e1c78a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38e271cde5ae62b0b94ff8e8e7e1e1395da7dbf5
refs/heads/master: b4b8482690d97ea5421acf71e9e397fe0c5a25b8
7 changes: 3 additions & 4 deletions trunk/drivers/spi/spi-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -2053,8 +2053,7 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
}

/* Allocate master with space for data */
master = spi_alloc_master(dev, sizeof(struct pl022) + sizeof(int) *
num_cs);
master = spi_alloc_master(dev, sizeof(struct pl022));
if (master == NULL) {
dev_err(&adev->dev, "probe - cannot alloc SPI master\n");
status = -ENOMEM;
Expand All @@ -2066,8 +2065,8 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
pl022->master_info = platform_info;
pl022->adev = adev;
pl022->vendor = id->data;
/* Point chipselects to allocated memory beyond the main struct */
pl022->chipselects = (int *) pl022 + sizeof(struct pl022);
pl022->chipselects = devm_kzalloc(dev, num_cs * sizeof(int),
GFP_KERNEL);

/*
* Bus Number Which has been Assigned to this SSP controller
Expand Down

0 comments on commit 0e1c78a

Please sign in to comment.