diff options
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3abb3903f2ad..a5f53de813d3 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -1610,8 +1610,7 @@ static struct class spi_master_class = { | |||
1610 | * | 1610 | * |
1611 | * The caller is responsible for assigning the bus number and initializing | 1611 | * The caller is responsible for assigning the bus number and initializing |
1612 | * the master's methods before calling spi_register_master(); and (after errors | 1612 | * the master's methods before calling spi_register_master(); and (after errors |
1613 | * adding the device) calling spi_master_put() and kfree() to prevent a memory | 1613 | * adding the device) calling spi_master_put() to prevent a memory leak. |
1614 | * leak. | ||
1615 | */ | 1614 | */ |
1616 | struct spi_master *spi_alloc_master(struct device *dev, unsigned size) | 1615 | struct spi_master *spi_alloc_master(struct device *dev, unsigned size) |
1617 | { | 1616 | { |