Merge 3.12-rc2 into staging-next.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 15:59:04 +0000 (08:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 15:59:04 +0000 (08:59 -0700)
This resolves the merge problem with two iio drivers that Stephen
Rothwell pointed out.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 files changed:
1  2 
drivers/iio/accel/bma180.c
drivers/iio/adc/at91_adc.c
drivers/iio/buffer_cb.c
drivers/iio/dac/mcp4725.c
drivers/iio/iio_core.h
drivers/iio/industrialio-buffer.c
drivers/iio/industrialio-core.c
drivers/iio/industrialio-event.c
drivers/iio/temperature/tmp006.c
drivers/staging/dgap/dgap_driver.c
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/iio/light/isl29018.c
drivers/staging/iio/magnetometer/hmc5843.c
drivers/staging/iio/meter/ade7854-spi.c
drivers/staging/lustre/lustre/Kconfig
drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c
drivers/staging/rtl8188eu/core/rtw_wlan_util.c
drivers/staging/rtl8188eu/include/odm.h

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 2361fbc74e33a9bd403a8a7eb6828675907e94f5,2710f7245c3b5472b0e924bd22a94f6bc1212b6f..e9f389b9da690b616b04587b9e91a6304ddefffb
@@@ -521,9 -546,16 +540,16 @@@ int iio_update_buffers(struct iio_dev *
                         * Roll back.
                         * Note can only occur when adding a buffer.
                         */
 -                      list_del(&insert_buffer->buffer_list);
 +                      list_del_init(&insert_buffer->buffer_list);
-                       indio_dev->active_scan_mask = old_mask;
-                       success = -EINVAL;
+                       if (old_mask) {
+                               indio_dev->active_scan_mask = old_mask;
+                               success = -EINVAL;
+                       }
+                       else {
+                               kfree(compound_mask);
+                               ret = -EINVAL;
+                               goto error_ret;
+                       }
                }
        } else {
                indio_dev->active_scan_mask = compound_mask;
Simple merge
index 2390e3d08e481b151c7801a9949da9d48dc2c131,6be65ef5faa9b6e46716857af7ed67d8eb7ea004..36f0c8e0eb3dcfd7243ec9c60115ab270502536c
@@@ -158,8 -163,10 +163,10 @@@ int iio_event_getfd(struct iio_dev *ind
                return -EBUSY;
        }
        spin_unlock_irq(&ev_int->wait.lock);
-       fd = anon_inode_getfd("iio:event",
-                               &iio_event_chrdev_fileops, ev_int, O_RDONLY | O_CLOEXEC);
+       iio_device_get(indio_dev);
+       fd = anon_inode_getfd("iio:event", &iio_event_chrdev_fileops,
 -                              indio_dev, O_RDONLY);
++                              indio_dev, O_RDONLY | O_CLOEXEC);
        if (fd < 0) {
                spin_lock_irq(&ev_int->wait.lock);
                __clear_bit(IIO_BUSY_BIT_POS, &ev_int->flags);
Simple merge
Simple merge
Simple merge
Simple merge
index 7cb8d931625cfc0213b01053dc0ac9f4ce5aea37,4c6d2041260bed259f7cba174c64ceb9a9c1a3f8..94f73bbbc0fd28ec65153b401ef5a401d32d24d2
@@@ -296,8 -296,10 +296,8 @@@ static int ade7854_spi_probe(struct spi
  
  
        ret = ade7854_probe(indio_dev, &spi->dev);
 -      if (ret)
 -              iio_device_free(indio_dev);
  
-       return 0;
+       return ret;
  }
  
  static int ade7854_spi_remove(struct spi_device *spi)
Simple merge