Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/topic/core' into spi-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Aug 4, 2014
2 parents 8331c49 + 840e9c3 commit fa2b564
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,12 @@ static DEFINE_MUTEX(board_lock);
struct spi_device *spi_alloc_device(struct spi_master *master)
{
struct spi_device *spi;
struct device *dev = master->dev.parent;

if (!spi_master_get(master))
return NULL;

spi = kzalloc(sizeof(*spi), GFP_KERNEL);
if (!spi) {
dev_err(dev, "cannot alloc spi_device\n");
spi_master_put(master);
return NULL;
}
Expand Down

0 comments on commit fa2b564

Please sign in to comment.