linux/drivers/staging/iio
Vladimir Zapolskiy 01bb70ae0b iio: lpc32xx_adc: fix warnings caused by enabling unprepared clock
If common clock framework is configured, the driver generates a warning,
which is fixed by this change:

    root@devkit3250:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 724 at drivers/clk/clk.c:727 clk_core_enable+0x2c/0xa4()
    Modules linked in: sc16is7xx snd_soc_uda1380
    CPU: 0 PID: 724 Comm: cat Not tainted 4.3.0-rc2+ #198
    Hardware name: LPC32XX SoC (Flattened Device Tree)
    Backtrace:
    [<>] (dump_backtrace) from [<>] (show_stack+0x18/0x1c)
    [<>] (show_stack) from [<>] (dump_stack+0x20/0x28)
    [<>] (dump_stack) from [<>] (warn_slowpath_common+0x90/0xb8)
    [<>] (warn_slowpath_common) from [<>] (warn_slowpath_null+0x24/0x2c)
    [<>] (warn_slowpath_null) from [<>] (clk_core_enable+0x2c/0xa4)
    [<>] (clk_core_enable) from [<>] (clk_enable+0x24/0x38)
    [<>] (clk_enable) from [<>] (lpc32xx_read_raw+0x38/0x80)
    [<>] (lpc32xx_read_raw) from [<>] (iio_read_channel_info+0x70/0x94)
    [<>] (iio_read_channel_info) from [<>] (dev_attr_show+0x28/0x4c)
    [<>] (dev_attr_show) from [<>] (sysfs_kf_seq_show+0x8c/0xf0)
    [<>] (sysfs_kf_seq_show) from [<>] (kernfs_seq_show+0x2c/0x30)
    [<>] (kernfs_seq_show) from [<>] (seq_read+0x1c8/0x440)
    [<>] (seq_read) from [<>] (kernfs_fop_read+0x38/0x170)
    [<>] (kernfs_fop_read) from [<>] (do_readv_writev+0x16c/0x238)
    [<>] (do_readv_writev) from [<>] (vfs_readv+0x50/0x58)
    [<>] (vfs_readv) from [<>] (default_file_splice_read+0x1a4/0x308)
    [<>] (default_file_splice_read) from [<>] (do_splice_to+0x78/0x84)
    [<>] (do_splice_to) from [<>] (splice_direct_to_actor+0xc8/0x1cc)
    [<>] (splice_direct_to_actor) from [<>] (do_splice_direct+0xa0/0xb8)
    [<>] (do_splice_direct) from [<>] (do_sendfile+0x1a8/0x30c)
    [<>] (do_sendfile) from [<>] (SyS_sendfile64+0x104/0x10c)
    [<>] (SyS_sendfile64) from [<>] (ret_fast_syscall+0x0/0x38)

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-10-25 12:21:59 +00:00
..
accel iio: accel: sca3000: memory corruption in sca3000_read_first_n_hw_rb() 2015-10-03 10:28:24 +01:00
adc iio: lpc32xx_adc: fix warnings caused by enabling unprepared clock 2015-10-25 12:21:59 +00:00
addac staging: iio: Drop owner assignment from i2c_driver 2015-07-11 18:47:05 +01:00
cdc staging: iio: cdc: Don't put an else right after a return 2014-09-19 17:49:39 -07:00
Documentation Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
frequency Staging: iio: Use braces on all arms of if statement 2015-03-16 16:14:05 +01:00
gyro Staging: iio: gyro: Added description for config symbol. 2014-10-20 10:29:08 +08:00
impedance-analyzer Staging: iio: impedance-analyzer: Remove explicit NULL comparison 2015-04-01 17:23:21 +02:00
light staging: iio: Drop owner assignment from i2c_driver 2015-07-11 18:47:05 +01:00
magnetometer First set of new drivers, cleanups and functionality for IIO in the 4.1 cycle. 2015-03-24 22:53:52 +01:00
meter staging: iio: Remove unnecessary externs 2015-08-14 17:36:24 -07:00
resolver Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-10 20:31:43 +01:00
trigger Staging: iio: trigger: Use braces on both branches of if statement 2015-08-14 17:36:24 -07:00
iio_dummy_evgen.c Staging: iio: dummy: Fix blank line warnings 2015-07-11 18:42:15 +01:00
iio_dummy_evgen.h staging: iio_simple_dummy: fix return types 2015-06-01 11:21:46 +01:00
iio_simple_dummy_buffer.c Staging: iio: dummy: Fix blank line warnings 2015-07-11 18:42:15 +01:00
iio_simple_dummy_events.c staging: iio_simple_dummy: Fix indentation errors 2015-08-08 15:12:58 +01:00
iio_simple_dummy.c Staging: iio: dummy: Fix blank line warnings 2015-07-11 18:42:15 +01:00
iio_simple_dummy.h Staging: iio: dummy: Fix blank line warnings 2015-07-11 18:42:15 +01:00
Kconfig staging: iio: select IRQ_WORK for IIO_DUMMY_EVGEN 2015-10-25 12:15:36 +00:00
Makefile
ring_hw.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00
TODO Staging/iio: add TODO reminder 2013-10-01 16:19:17 +01:00