Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354210
b: refs/heads/master
c: d526e51
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron committed Jan 26, 2013
1 parent 3a5a09b commit f79f507
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: b775dce99621af52d32c1d7335cf94eee4383e8a
refs/heads/master: d526e513c7dd1bb3f9696c7d38634e5ebf5f0919
10 changes: 5 additions & 5 deletions trunk/drivers/staging/iio/accel/kxsd9.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static int kxsd9_probe(struct spi_device *spi)
{
struct iio_dev *indio_dev;
struct kxsd9_state *st;
int ret = 0;
int ret;

indio_dev = iio_device_alloc(sizeof(*st));
if (indio_dev == NULL) {
Expand All @@ -245,14 +245,14 @@ static int kxsd9_probe(struct spi_device *spi)
indio_dev->info = &kxsd9_info;
indio_dev->modes = INDIO_DIRECT_MODE;

ret = iio_device_register(indio_dev);
if (ret)
goto error_free_dev;

spi->mode = SPI_MODE_0;
spi_setup(spi);
kxsd9_power_up(st);

ret = iio_device_register(indio_dev);
if (ret)
goto error_free_dev;

return 0;

error_free_dev:
Expand Down

0 comments on commit f79f507

Please sign in to comment.