diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /drivers/spi/spidev.c | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'drivers/spi/spidev.c')
| -rw-r--r-- | drivers/spi/spidev.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index dd616ff0ffc5..fba92a526531 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -602,11 +602,11 @@ static int spidev_open(struct inode *inode, struct file *filp)  	if (!spidev->tx_buffer) {  		spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL);  		if (!spidev->tx_buffer) { -				dev_dbg(&spidev->spi->dev, "open/ENOMEM\n"); -				status = -ENOMEM; +			dev_dbg(&spidev->spi->dev, "open/ENOMEM\n"); +			status = -ENOMEM;  			goto err_find_dev; -			}  		} +	}  	if (!spidev->rx_buffer) {  		spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); @@ -693,6 +693,7 @@ static struct class *spidev_class;  #ifdef CONFIG_OF  static const struct of_device_id spidev_dt_ids[] = {  	{ .compatible = "rohm,dh2228fv" }, +	{ .compatible = "lineartechnology,ltc2488" },  	{},  };  MODULE_DEVICE_TABLE(of, spidev_dt_ids); @@ -708,7 +709,7 @@ static int spidev_probe(struct spi_device *spi)  	/*  	 * spidev should never be referenced in DT without a specific -	 * compatbile string, it is a Linux implementation thing +	 * compatible string, it is a Linux implementation thing  	 * rather than a description of the hardware.  	 */  	if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {  |