GitHub/MotorolaMobilityLLC/kernel-slsi.git
13 years agostaging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode register.
Jonathan Cameron [Thu, 14 Jul 2011 09:24:02 +0000 (10:24 +0100)]
staging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode register.

Build tested only.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:kfifo_buf fix double initialization of the ring device structure.
Jonathan Cameron [Wed, 13 Jul 2011 11:52:00 +0000 (12:52 +0100)]
staging:iio:kfifo_buf fix double initialization of the ring device structure.

Looks like this moved into the core at somepoint and kfifo buf got left
behind.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_drvdata.
Jonathan Cameron [Wed, 13 Jul 2011 11:51:59 +0000 (12:51 +0100)]
staging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_drvdata.

This mean all sorts of interesting results on driver removal.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:imu fix missing register table index for some channels
Jonathan Cameron [Wed, 13 Jul 2011 11:51:58 +0000 (12:51 +0100)]
staging:iio:imu fix missing register table index for some channels

A number of these register indexes were not set or actually wrong.
This only effects sysfs reads.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agospectra: enable device before poking it
Alan Cox [Tue, 12 Jul 2011 16:40:03 +0000 (17:40 +0100)]
spectra: enable device before poking it

Otherwise if it is off at boot time things don't go to plan.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rts_pstor: Fix a miswriting
wwang [Mon, 11 Jul 2011 02:20:20 +0000 (10:20 +0800)]
staging: rts_pstor: Fix a miswriting

cppcheck reported: [staging/rts_pstor/sd.c:3730] -> [staging/rts_pstor/sd.c:3726]: (style) Found duplicate if expressions.
It's a miswriting, and the second if expression should be "(rsp_type == SD_RSP_TYPE_R0)"

Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/lirc_bt829: Return -ENODEV when no hardware is found.
Dave Jones [Mon, 11 Jul 2011 15:24:36 +0000 (11:24 -0400)]
staging/lirc_bt829: Return -ENODEV when no hardware is found.

sys_init_module: 'lirc_bt829'->init suspiciously returned 1, it should follow 0/-E convention
sys_init_module: loading module anyway...
Pid: 8511, comm: modprobe Tainted: G        WC  3.0.0-rc6+ #73
Call Trace:
 [<ffffffff810b3da7>] sys_init_module+0x217/0x230
 [<ffffffff815ed1d2>] system_call_fastpath+0x16/0x1b

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/lirc_parallel: remove pointless prototypes.
Dave Jones [Mon, 11 Jul 2011 16:21:45 +0000 (12:21 -0400)]
staging/lirc_parallel: remove pointless prototypes.

These are right before the actual definitions, so redundant.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/lirc_parallel: fix panic on rmmod
Dave Jones [Mon, 11 Jul 2011 18:39:20 +0000 (14:39 -0400)]
staging/lirc_parallel: fix panic on rmmod

lirc_parallel seems to leave a bunch of stuff around after rmmod.
Without the patch below modprobe ; rmmod ; modprobe will cause a panic.

There are still some remaining problems, (double registration of sysfs files)
but this patch is at least a start to survive the panic.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
Jonathan Cameron [Wed, 13 Jul 2011 12:42:47 +0000 (13:42 +0100)]
staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.

Will cause issues only on driver removal.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: zram: Fix kunmapping order
Jerome Marchand [Wed, 13 Jul 2011 15:20:05 +0000 (17:20 +0200)]
Staging: zram: Fix kunmapping order

This patch fixes the unmapping order of KM_USER0/1 in
handle_uncompressed_page() and zram_read() so that kmap()/kunmap() calls
are correctly nested.

Reported-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Reviewed-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoRevert "gma500: Fix dependencies"
Greg Kroah-Hartman [Sun, 17 Jul 2011 09:13:39 +0000 (11:13 +0200)]
Revert "gma500: Fix dependencies"

This reverts commit 66dca5178c70b7bb5ae1761e175569eac8708e1e.  It caused
build errors on some platforms:

drivers/video/Kconfig:36:error: recursive dependency detected!
drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
drivers/gpu/drm/Kconfig:22:     symbol DRM_KMS_HELPER is selected by DRM_PSB
drivers/staging/gma500/Kconfig:1:       symbol DRM_PSB depends on ACPI_VIDEO

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Add medfield header
Alan Cox [Fri, 15 Jul 2011 18:34:26 +0000 (19:34 +0100)]
gma500: Add medfield header

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: wire up the mrst i2c bus from chip_info
Alan Cox [Fri, 15 Jul 2011 16:47:11 +0000 (17:47 +0100)]
gma500: wire up the mrst i2c bus from chip_info

We did the groundwork earlier now we can use it

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix DPU build
Alan Cox [Fri, 15 Jul 2011 16:46:58 +0000 (17:46 +0100)]
gma500: Fix DPU build

Fix up the merge build

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Clean up the DPU config and make it runtime
Alan Cox [Fri, 15 Jul 2011 16:35:49 +0000 (17:35 +0100)]
gma500: Clean up the DPU config and make it runtime

We really don't want this all done by ifdeffery - and this isn't any need
as it's fairly easy to sort out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: resync with Medfield progress
Alan Cox [Fri, 15 Jul 2011 16:35:36 +0000 (17:35 +0100)]
gma500: resync with Medfield progress

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Use the mrst helpers and power control for mode commit
Alan Cox [Fri, 15 Jul 2011 16:35:24 +0000 (17:35 +0100)]
gma500: Use the mrst helpers and power control for mode commit

We want to hit the MM panel backlight when appropriate

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500@ Fix backlight range error
Alan Cox [Fri, 15 Jul 2011 16:35:12 +0000 (17:35 +0100)]
gma500@ Fix backlight range error

If we go out of range we break the pm counts on the error path

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: More Moorestown muddle meddling means MM maybe might modeset
Alan Cox [Fri, 15 Jul 2011 16:34:58 +0000 (17:34 +0100)]
gma500: More Moorestown muddle meddling means MM maybe might modeset

There are a least three different species we need to deal with and right
now it seems the only way to sort them out is via DMI. Encapsulate the
entire pile somewhere private and out of the way.

Hopefully a saner method will emerge later.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Add the Oaktrail HDMI support
Alan Cox [Fri, 15 Jul 2011 16:34:41 +0000 (17:34 +0100)]
gma500: Add the Oaktrail HDMI support

This differs enough from the Cedarview HDMI sufficiently to want to keep
them separated.

We need to sort out the power management for Oaktrail/Moorestown in order
to plumb this lot into the register handling logic.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix cdv warning on unused variable
Alan Cox [Fri, 15 Jul 2011 16:34:28 +0000 (17:34 +0100)]
gma500: Fix cdv warning on unused variable

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: skip getting modes via DDC on Moorestown
Octavian Purdila [Fri, 15 Jul 2011 16:34:15 +0000 (17:34 +0100)]
gma500: skip getting modes via DDC on Moorestown

Moorestown does not have a DDC bus, skip getting modes via DDC. This
fixes the following bug:

BUG: unable to handle kernel NULL pointer dereference at 00000010
IP: [<c1172ff7>] i2c_transfer+0x17/0xb0
*pde = 00000000
Oops: 0000 [#1]

Call Trace:
 [<c1153ae9>] drm_do_probe_ddc_edid+0x59/0x90
 [<c1153cb4>] drm_get_edid+0x24/0x250
 [<c11805d2>] psb_intel_ddc_get_modes+0x22/0x60
 [<c117fe11>] psb_intel_lvds_get_modes+0x21/0x80

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: fix compile warnings when CONFIG_BACKLIGHT_CLASS_DEVICE is not defined
Octavian Purdila [Fri, 15 Jul 2011 16:33:57 +0000 (17:33 +0100)]
gma500: fix compile warnings when CONFIG_BACKLIGHT_CLASS_DEVICE is not defined

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
[Fixed up for other changes, and tidied some existing variable names]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Make crtc count a property of the device
Alan Cox [Fri, 15 Jul 2011 16:33:43 +0000 (17:33 +0100)]
gma500: Make crtc count a property of the device

Octavian Purdila posted a patch that sets num_crtc to 1 for Moorestown, but
Oaktrail has 2 so we need to split Oaktrail/Moorestown more sensibly, and
also cope with some other differences later on.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: remove the legacy PM method
Octavian Purdila [Fri, 15 Jul 2011 16:33:26 +0000 (17:33 +0100)]
gma500: remove the legacy PM method

PCI core only prefer one of legacy PM and new PM. And since runtime pm
is implemented, which requires the new PM method, we should remove the
legacy PM method.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: allow the creation of 'stolen' memory objects
Alan Cox [Fri, 15 Jul 2011 16:33:08 +0000 (17:33 +0100)]
gma500: allow the creation of 'stolen' memory objects

For things like cursors and many kinds of framebuffer set up we are actually
best using the stolen memory when possible.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: add an mmap ioctl
Alan Cox [Fri, 15 Jul 2011 16:32:38 +0000 (17:32 +0100)]
gma500: add an mmap ioctl

This does the same as the dumb mmap but we want them separated in the ABI
in case a future extension to the dumb interface means we can't treat them
the same way.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Move the 2D operations into DRM
Alan Cox [Fri, 15 Jul 2011 16:32:13 +0000 (17:32 +0100)]
gma500: Move the 2D operations into DRM

We currently have a test hack framebuffer mode ioctl, turn that into a DRM
interface.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Cursor interface
Alan Cox [Fri, 15 Jul 2011 16:31:26 +0000 (17:31 +0100)]
gma500: Cursor interface

We need to provide an interface to create additional buffers for the cursor

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix dependencies
Alan Cox [Mon, 11 Jul 2011 18:41:24 +0000 (19:41 +0100)]
gma500: Fix dependencies

ACPI Video is used by GMA500 so we need to depend upon it

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Sort out dither
Alan Cox [Mon, 11 Jul 2011 18:41:09 +0000 (19:41 +0100)]
gma500: Sort out dither

Ubuntu users reported that dithering was not being set on Poulsbo, and they
have a point as we set one variable and check another which is never set.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Tested-by: Luca Forina <luca.forina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: don't dynamically allocate the psb_gtt struct
Alan Cox [Mon, 11 Jul 2011 18:40:34 +0000 (19:40 +0100)]
gma500: don't dynamically allocate the psb_gtt struct

It's part of the psb_device so just make it part of the struct not a
pointer. This does cause a bit of noise shuffling indirections.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Final polish
Alan Cox [Mon, 11 Jul 2011 18:39:43 +0000 (19:39 +0100)]
gma500: Final polish

This completes the clean up all the non Medfield C files to the point where
checkpatch approves of them barring some silly 80 column whining.

The Medfield stuff is still in a lot of flux but the rest is now ready for
general tidy and review.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: delete westbridge code
Greg Kroah-Hartman [Tue, 12 Jul 2011 02:53:56 +0000 (04:53 +0200)]
Staging: delete westbridge code

It's been stagnant for a while with out much forward progress for a
variety of different reasons.  So remove it for now.  It can be reverted
at any time if development picks back up again.

Acked-by: David Cross <odc@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: zcache: support multiple clients, prep for KVM and RAMster
Dan Magenheimer [Thu, 7 Jul 2011 14:37:19 +0000 (07:37 -0700)]
staging: zcache: support multiple clients, prep for KVM and RAMster

This is version 3 of an update to zcache, incorporating feedback from the list.
This patch adds support to the in-kernel transcendent memory ("tmem") code
and the zcache driver for multiple clients, which will be needed for both
RAMster and KVM support.  It also adds additional tmem callbacks to support
RAMster and corresponding no-op stubs in the zcache driver.  In v2, I've
also taken the liberty of adding some additional sysfs variables to
both surface information and allow policy control.  Those experimenting
with zcache should find them useful.  V3 clarifies some code walking
and declaring arrays.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
[v3: error27@gmail.com: fix array bounds/walking]
[v2: konrad.wilk@oracle.com: fix bools, add check for NULL, fix a comment]
[v2: sjenning@linux.vnet.ibm.com: add info/tunables for poor compression]
[v2: marcusklemm@googlemail.com: add tunable for max persistent pages]
Acked-by: Dan Carpenter <error27@gmail.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: linux-mm@kvack.org
Cc: kvm@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agodrivers:staging:rtl typo fix encryptiong to encryption.
Justin P. Mattock [Thu, 7 Jul 2011 13:19:54 +0000 (15:19 +0200)]
drivers:staging:rtl typo fix encryptiong to encryption.

This patch fixes a typo.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: Remove ENE UB6250 MS card codes from keucr
Cho, Yu-Chen [Thu, 7 Jul 2011 03:27:14 +0000 (11:27 +0800)]
Staging: Remove ENE UB6250 MS card codes from keucr

Remove ENE UB6250 MS card codes from keucr.

Signed-off-by: Cho, Yu-Chen <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: Merge ENE UB6250 MS card codes from keucr to drivers/usb/storage/ene_ub6250.c
Cho, Yu-Chen [Thu, 7 Jul 2011 03:27:13 +0000 (11:27 +0800)]
Staging: Merge ENE UB6250 MS card codes from keucr to drivers/usb/storage/ene_ub6250.c

Merge ENE UB6250 MS card codes from keucr to drivers/usb/storage/ene_ub6250.c.

Signed-off-by: Cho, Yu-Chen <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:light:isl29018: Convert some of the isl29018 driver to the new iio_chan_s...
Bryan Freed [Thu, 7 Jul 2011 19:01:56 +0000 (12:01 -0700)]
staging:iio:light:isl29018: Convert some of the isl29018 driver to the new iio_chan_spec framework.

Remove the driver's get_sensor_data() interfaces and replace them with
iio_chan_spec channels.  This converts 4 files to the new framework.
Driver ABI change: The intensity_infrared_raw file is now intensity_ir_raw.

Signed-off-by: Bryan Freed <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio: Add an iio channel type string to support proximity sensors.
Bryan Freed [Thu, 7 Jul 2011 19:01:55 +0000 (12:01 -0700)]
staging:iio: Add an iio channel type string to support proximity sensors.

Add "proximity" to the iio_chan_type_name_spec_shared string list to
support proximity sensors.
Now this list fully matches the declared iio_chan_type enums.

Signed-off-by: Bryan Freed <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio: Reorder channel type strings to match the iio.h enums.
Bryan Freed [Thu, 7 Jul 2011 19:01:54 +0000 (12:01 -0700)]
staging:iio: Reorder channel type strings to match the iio.h enums.

This makes comparison between the iio_chan_type_name_spec_shared strings
and the iio_chan_type enums easier.

Signed-off-by: Bryan Freed <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:light:isl29018: Fix the "Init of isl29018 fails" failure.
Bryan Freed [Thu, 7 Jul 2011 19:01:57 +0000 (12:01 -0700)]
staging:iio:light:isl29018: Fix the "Init of isl29018 fails" failure.

The I2C clientdata is set to indio_dev instead of chip as of a couple weeks ago.
Correct the calls to i2c_get_clientdata() accordingly.
Otherwise the driver fails to initialize.

Signed-off-by: Bryan Freed <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: comedi: fix printk issue in rtd520.c
Ravishankar [Fri, 8 Jul 2011 07:44:45 +0000 (13:14 +0530)]
Staging: comedi: fix printk issue in rtd520.c

This is a patch to the rtd520.c file that fixes up a printk  warning found by the checkpatch.pl tool

Signed-off-by: Ravishankr <ravishakarkm32@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: comedi: fix line over 80 character issue in rtd520.c
Ravishankar [Fri, 8 Jul 2011 11:08:31 +0000 (16:38 +0530)]
Staging: comedi: fix line over 80 character issue in rtd520.c

This is a patch to the rtd520.c file that fixes up a  warning: line over 80 character found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: Fix module parameter permissions
Jean Delvare [Fri, 8 Jul 2011 09:03:44 +0000 (11:03 +0200)]
staging: brcm80211: Fix module parameter permissions

The third parameter of module_param is supposed to represent sysfs
file permissions. A value of "1" makes no sense.

I am changing it to "0" to align with the other module parameters in
this driver.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Roland Vossen <rvossen@broadcom.com>
Cc: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: tm6000: remove unneeded check in get_next_buf()
Dan Carpenter [Fri, 8 Jul 2011 07:25:40 +0000 (10:25 +0300)]
Staging: tm6000: remove unneeded check in get_next_buf()

We dereference "buf" on the line before so if it were NULL here we
would have OOPsed earlier.  Also list_entry() never returns NULL.
And finally, we handled the situation where the list is empty
earlier in the function.

So this test isn't needed and I've removed it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: et1310_mac.c: ConfigMacStatRegs() add missing regs to be zeroed
Mark Einon [Thu, 7 Jul 2011 22:38:58 +0000 (23:38 +0100)]
staging: et131x: et1310_mac.c: ConfigMacStatRegs() add missing regs to be zeroed

The comment at the top of the function states 'we need to initialize all the macstat registers to zero', but not all macstat registers are zeroed. Zero the missing registers.
Tested on an ET-131x device.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: Remove spaces between tabs inserted in patch 7b7fb34d3ffa
Mark Einon [Thu, 7 Jul 2011 22:38:57 +0000 (23:38 +0100)]
staging: et131x: Remove spaces between tabs inserted in patch 7b7fb34d3ffa

I must remember to run checkpatch on 'trivial' patches too...

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: Convert et1310_address_map.h names from camel case
Mark Einon [Thu, 7 Jul 2011 21:59:04 +0000 (22:59 +0100)]
staging: et131x: Convert et1310_address_map.h names from camel case

Trivial name changes.
Tested on an ET-131x device.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: rename adapter->Flags to adapter->flags
Mark Einon [Thu, 7 Jul 2011 21:59:03 +0000 (22:59 +0100)]
staging: et131x: rename adapter->Flags to adapter->flags

Trivial rename of the adapter flags struct member to remove camel case.
Tested on a ET-131x device.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: nicpci: Neatening
Joe Perches [Fri, 8 Jul 2011 04:31:06 +0000 (21:31 -0700)]
staging: brcm80211: nicpci: Neatening

Remove unnecessary casts of void *.
Spacing and removal of unnecessary parentheses.
80 column wrapping.
Comment neatening.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoAltera-stapl: Clean up makefile (-y instead of -objs)
Tracey Dent [Thu, 7 Jul 2011 18:17:24 +0000 (14:17 -0400)]
Altera-stapl: Clean up makefile (-y instead of -objs)

Changed Makefile to use <modules>-y instead of <modules>-objs
because -objs is deprecated.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoAth6kl: TODO: Fix spelling :)
Tracey Dent [Thu, 7 Jul 2011 18:17:25 +0000 (14:17 -0400)]
Ath6kl: TODO: Fix spelling :)

Change the word editign to editing

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: remove oss support
Tomas Winkler [Thu, 7 Jul 2011 17:45:46 +0000 (20:45 +0300)]
staging/easycap: remove oss support

remove support for OSS. OSS is being deprecated
and it is just plain headache to support both alsa and oss.

Last I broke the compilation when OSS is enabled with the patch
cdaa898b5efcc598ab1004e8f913061dc7005091
staging/easycap: kill telltale logic

so this fixes also that issue.

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: remove unused macro MICROSECONDS
Tomas Winkler [Thu, 7 Jul 2011 17:45:45 +0000 (20:45 +0300)]
staging/easycap: remove unused macro MICROSECONDS

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agosst: avoid unnecessary firmware reloading for MRST
Feng Tang [Fri, 8 Jul 2011 08:59:26 +0000 (09:59 +0100)]
sst: avoid unnecessary firmware reloading for MRST

SST HW on MRST doesn't need to reload the firmware during suspend/resume
cycle, so remove the extra workload. This also fix a bug that the firmware
sample rate can't be modified when there is no active playback/capture
stream.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agosst: report correct jack event
Lu Guanqun [Fri, 8 Jul 2011 08:59:10 +0000 (09:59 +0100)]
sst: report correct jack event

The status of jack event is compared bitwise:

[in sound/core/jack.c:snd_jack_report()]
for (i = 0; i < ARRAY_SIZE(jack_switch_types); i++) {
int testbit = 1 << i;
if (jack->type & testbit)
input_report_switch(jack->input_dev,
    jack_switch_types[i],
    status & testbit);
}

So in order to report the correct events, 3 should be passed instead of 1.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbip-utils 1.1.1
matt mooney [Thu, 7 Jul 2011 07:31:56 +0000 (00:31 -0700)]
staging: usbip: userspace: usbip-utils 1.1.1

Bump package revision number!

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: README: update example output
matt mooney [Thu, 7 Jul 2011 07:31:55 +0000 (00:31 -0700)]
staging: usbip: userspace: README: update example output

Change a missed reference to the `list' command, and update the output
from `usbip bind ...' and `usbip list -r ...'

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbip: modify `list' help message
matt mooney [Thu, 7 Jul 2011 07:31:54 +0000 (00:31 -0700)]
staging: usbip: userspace: usbip: modify `list' help message

The remote devices listed are, technically, exportable and not
necessarily exported.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbip_list.c: modify exportable device output
matt mooney [Thu, 7 Jul 2011 07:31:53 +0000 (00:31 -0700)]
staging: usbip: userspace: usbip_list.c: modify exportable device output

Change spacing to provide better indentation for readability.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: fix header installation bug
matt mooney [Thu, 7 Jul 2011 07:31:52 +0000 (00:31 -0700)]
staging: usbip: userspace: fix header installation bug

A bug that I created due to using simply expanding variables in the
makefiles. Although only unexpanded paths are at issue here, I decided
to use recursively expanding variables on all of the parameterized
values.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: add new prefix for usbip network code
matt mooney [Thu, 7 Jul 2011 07:31:51 +0000 (00:31 -0700)]
staging: usbip: userspace: add new prefix for usbip network code

Change and add new usbip_net_ prefix to every function in the network
code for easier identification.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbipd: major cleanup of daemon
matt mooney [Thu, 7 Jul 2011 07:31:50 +0000 (00:31 -0700)]
staging: usbip: userspace: usbipd: major cleanup of daemon

Reorganize, rename [for clarity and to remove stub_driver
references], modify output messages, and cleanup coding style;
nevertheless, the actual implementation is pretty much untouched.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: fix usbip printk format warning
Randy Dunlap [Thu, 7 Jul 2011 17:49:54 +0000 (10:49 -0700)]
staging: fix usbip printk format warning

Fix usbip printk format warning for size_t:

drivers/staging/usbip/stub_tx.c:236: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: comedi: fix warning issue in unioxx5.c
Ravishankar [Thu, 7 Jul 2011 15:44:43 +0000 (21:14 +0530)]
Staging: comedi: fix warning issue in unioxx5.c

This is a patch to the unioxx5.c file that fixes up a  warning found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: comedi: fix brace coding style issue in serial2002.c
Ravishankar [Thu, 7 Jul 2011 14:23:04 +0000 (19:53 +0530)]
Staging: comedi: fix brace coding style issue in serial2002.c

This is a patch to the serial2002.c file that fixes up a brace warning found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: comedi: fix brace and printk coding style issue in serial2002.c
Ravishankar [Thu, 7 Jul 2011 12:05:27 +0000 (17:35 +0530)]
Staging: comedi: fix brace and printk coding style issue in serial2002.c

This is a patch to the serial2002.c file that fixes up a brace and printk  warning found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: mei: reordering the exit module cleanup
Oren Weil [Thu, 7 Jul 2011 13:02:45 +0000 (16:02 +0300)]
staging: mei: reordering the exit module cleanup

keeping the exit flow in a reverse order then the init flow.

Signed-off-by: Oren Weil <oren.jer.weil@intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: remove unneeded check in mdfld_crtc_mode_set()
Dan Carpenter [Fri, 8 Jul 2011 08:45:49 +0000 (09:45 +0100)]
gma500: remove unneeded check in mdfld_crtc_mode_set()

The list cursor is never NULL in a list_for_each_entry() loop.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: reversed test in mdfld_dbi_dsr_exit()
Dan Carpenter [Fri, 8 Jul 2011 08:45:32 +0000 (09:45 +0100)]
gma500: reversed test in mdfld_dbi_dsr_exit()

We should only cleanup "dsr_info" if it's non-NULL obviously and not
the other way around.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: gma500: typo in array initialization
Dan Carpenter [Fri, 8 Jul 2011 08:45:19 +0000 (09:45 +0100)]
Staging: gma500: typo in array initialization

There is a comma missing here between the strings so they were
concatenated by mistake.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix unused variable in cdv support
Alan Cox [Fri, 8 Jul 2011 08:45:07 +0000 (09:45 +0100)]
gma500: Fix unused variable in cdv support

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500; clean mid files
Alan Cox [Fri, 8 Jul 2011 08:44:52 +0000 (09:44 +0100)]
gma500; clean mid files

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: tidy the mrst files
Alan Cox [Fri, 8 Jul 2011 08:44:34 +0000 (09:44 +0100)]
gma500: tidy the mrst files

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: tidy up the CDV files
Alan Cox [Fri, 8 Jul 2011 08:44:20 +0000 (09:44 +0100)]
gma500: tidy up the CDV files

We are close to having PSB and CDV ready for moving from staging so it's
time to get the polish out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Mask out bits not part of the page table base address
Patrik Jakobsson [Fri, 8 Jul 2011 08:44:03 +0000 (09:44 +0100)]
gma500: Mask out bits not part of the page table base address

Otherwise we can't ioremap the gtt and the screen gets garbled.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix symbol clash with i915
Alan Cox [Fri, 8 Jul 2011 08:43:45 +0000 (09:43 +0100)]
gma500: Fix symbol clash with i915

Randy Dunlap reports:
| when both CONFIG_DRM_I915=y and CONFIG_DRM_PSB=y:
| drivers/staging/built-in.o: In function `intel_opregion_init':
| (.text+0x47943): multiple definition of `intel_opregion_init'
| drivers/gpu/built-in.o:(.text+0x17277a): first defined here

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: psb_intel_lvds style
Alan Cox [Fri, 8 Jul 2011 08:43:29 +0000 (09:43 +0100)]
gma500: psb_intel_lvds style

Fixed some stylistic uglies noticed while fixing the previous bug

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Re-order checks and dereferences in psb_intel_lvds
Alan Cox [Fri, 8 Jul 2011 08:43:15 +0000 (09:43 +0100)]
gma500: Re-order checks and dereferences in psb_intel_lvds

Dan Carpenter reports:

Smatch complains about 6a7afe3acc4b "gma500: continue abstracting
platform specific code"

drivers/staging/gma500/psb_intel_lvds.c +579 psb_intel_lvds_set_property(7)
warn: variable dereferenced before check 'encoder'

--- a/drivers/staging/gma500/psb_intel_lvds.c
+++ b/drivers/staging/gma500/psb_intel_lvds.c
@@ -575,11 +575,12 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
       struct drm_property *property,
       uint64_t value)
 {
-       struct drm_encoder *pEncoder = connector->encoder;
+       struct drm_encoder *encoder = connector->encoder;
+       struct drm_psb_private *dev_priv = encoder->dev->dev_private;
   ^^^^^^^^^^^^
dereference encoder here.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: strip unneeded version headers
Jesper Juhl [Fri, 8 Jul 2011 08:42:58 +0000 (09:42 +0100)]
gma500: strip unneeded version headers

Remove unneeded version.h includes from drivers/staging/gma500/

It was pointed out by 'make versioncheck' that some includes of
linux/version.h are not needed in drivers/staging/gma500/.
This patch removes them.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
[updated for all th file cleanup and movement]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: delete tty drivers
Greg Kroah-Hartman [Wed, 6 Jul 2011 23:48:28 +0000 (16:48 -0700)]
Staging: delete tty drivers

Delete the drivers/staging/tty drivers as no one has wanted to step up
and maintain and fix them.  This was discussed in commit
4a6514e6d096716fb7bedf238efaaca877e2a7e8 (tty: move obsolete and broken
tty drivers to drivers/staging/tty/)

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: delete generic_serial drivers
Greg Kroah-Hartman [Wed, 6 Jul 2011 23:44:09 +0000 (16:44 -0700)]
Staging: delete generic_serial drivers

No one has steped up to claim them, so as described in commit
4c37705877e74c02c968735c2eee0f84914cf557 (tty: move obsolete and broken
generic_serial drivers to drivers/staging/generic_serial/), they are now
deleted from the system.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: msm: delete the driver
Greg Kroah-Hartman [Wed, 6 Jul 2011 23:34:27 +0000 (16:34 -0700)]
Staging: msm: delete the driver

It doesn't build anymore, no one is working on it, and, according to the
developers, there's a different one that is working and in the real part
of the kernel already.

Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: comedi: remove COMEDI_DEVICE_CREATE macro, expand all callers
Pavel Roskin [Wed, 6 Jul 2011 14:15:44 +0000 (10:15 -0400)]
staging: comedi: remove COMEDI_DEVICE_CREATE macro, expand all callers

This is no longer needed as the code is now in the main kernel tree.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbipd.c: fix userspace build error
David Chang [Wed, 6 Jul 2011 06:52:19 +0000 (14:52 +0800)]
staging: usbip: userspace: usbipd.c: fix userspace build error

When build userspace code, got the following error message:
make[2]: Entering directory `/usr/src/staging-2.6/drivers/staging/usbip/userspace/src'
  CC     usbip.o
...
  CCLD   usbip
  CC     usbipd.o
usbipd.c:30:25: fatal error: stub_driver.h: No such file or directory
compilation terminated.
make[2]: *** [usbipd.o] Error 1
make[2]: Leaving directory `/usr/src/staging-2.6/drivers/staging/usbip/userspace/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/staging-2.6/drivers/staging/usbip/userspace'
make: *** [all] Error 2

Due to commit 756d6726 and a16941ae, stub_driver had been changed
into host_driver, so update header filename and functions name to
fix these build errors

Signed-off-by: David Chang <dchang@novell.com>
CC: Joe Perches <joe@perches.com>
Cc: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: use of tasklets requires including interrupt.h
Stephen Rothwell [Wed, 6 Jul 2011 05:02:49 +0000 (15:02 +1000)]
staging: use of tasklets requires including interrupt.h

The implicit include of linux/interrupt.h is being removed from
netdevice.h.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agodrivers: staging: echo: Fix coding style issues.
Chris Forbes [Fri, 1 Jul 2011 09:55:38 +0000 (21:55 +1200)]
drivers: staging: echo: Fix coding style issues.

Fixed coding style issues as flagged by checkpatch.pl

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agodrivers: staging: bcm: sort: kill handrolled bubblesort
Chris Forbes [Sun, 3 Jul 2011 04:38:20 +0000 (16:38 +1200)]
drivers: staging: bcm: sort: kill handrolled bubblesort

Replaced the handrolled bubblesort with the kernel's sort() function.
Makes things considerably smaller & clearer.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: iio: release locks on error paths
Dan Carpenter [Thu, 30 Jun 2011 09:01:31 +0000 (12:01 +0300)]
Staging: iio: release locks on error paths

There are a couple places here where we should have called
mutex_unlock() before returning.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adis16260 fix missing num_channels setup.
Jonathan Cameron [Fri, 1 Jul 2011 10:13:36 +0000 (11:13 +0100)]
staging:iio:gyro:adis16260 fix missing num_channels setup.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: stable <stable@kernel.org> [3.0]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: iio: light sensor: Add a calibscale file to the isl29018 light sensor driver.
Bryan Freed [Tue, 28 Jun 2011 23:46:33 +0000 (16:46 -0700)]
staging: iio: light sensor: Add a calibscale file to the isl29018 light sensor driver.

Defaulting to 1, this gives a way to amplify the lux value before being
reduced by the programmed adc_bit shift.
Only support whole numbers right now.  When this driver is converted to the new
IIO_CHAN framework, it will be easy to support the framework's pseudo float.

Add illuminance0_calibscale documentation to sysfs-bus-iio-light.

Signed-off-by: Bryan Freed <bfreed@chromium.org>
Acked-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: iio: some uninitialized variable bugs
Dan Carpenter [Wed, 29 Jun 2011 19:50:48 +0000 (22:50 +0300)]
Staging: iio: some uninitialized variable bugs

There were some uninitialized variable warnings in iio.  Two of
these came from the recent changes to how the private data was
allocated in 83f0422dc6a16 "staging:iio:accel:sca3000: allocate
state in iio_dev and use iio_priv to access."

drivers/staging/iio/accel/sca3000_core.c: In function 'sca3000_probe':
drivers/staging/iio/accel/sca3000_core.c:1137:9: warning: 'st' may be used uninitialized in this function
drivers/staging/iio/adc/ad7291.c: In function 'ad7291_probe':
drivers/staging/iio/adc/ad7291.c:805:15: warning: 'chip' may be used uninitialized in this function
drivers/staging/iio/dac/ad5624r_spi.c: In function 'ad5624r_probe':
drivers/staging/iio/dac/ad5624r_spi.c:228:24: warning: 'st' may be used uninitialized in this function

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: ste_rmi4: remove cross-dependent platform data
Linus Walleij [Thu, 30 Jun 2011 06:31:59 +0000 (08:31 +0200)]
staging: ste_rmi4: remove cross-dependent platform data

The ux500 machine was actually defining platform data for the
staging driver ste_rmi4, which is not OK. Let us instead define
some __weak platform data in the machine so that the staging
driver can override it at compile-time and we can thus have the
driver self-contained in staging.

Reported-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: ath6kl: implement testmode rx command
Kalle Valo [Thu, 30 Jun 2011 08:43:54 +0000 (11:43 +0300)]
staging: ath6kl: implement testmode rx command

Add new testmode command for retrieving rx reports from firmware.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agodrivers/staging/usbip: bugfix prevent driver unbind regression in linux-next
Arjan Mels [Thu, 30 Jun 2011 20:18:18 +0000 (22:18 +0200)]
drivers/staging/usbip: bugfix prevent driver unbind regression in linux-next

Fix regression problem in linux-next: post_reset and pre_reset are no longer
included in linux-next while they are in linux-3.0rc5.

Signed-off-by: Arjan Mels <arjan.mels@gmx.net>
Cc: usbip-devel <usbip-devel@lists.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: usbip: vhci-hcd: Do not kill already dead RX/TX kthread
Tobias Klauser [Fri, 24 Jun 2011 13:48:47 +0000 (15:48 +0200)]
Staging: usbip: vhci-hcd: Do not kill already dead RX/TX kthread

When unbinding a device on the host which was still attached on the
client, I got a NULL pointer dereference on the client. This turned out
to be due to kthread_stop() being called on an already dead kthread.

Here is how I was able to reproduce the problem:

 server:# usbip bind -b 1-2
                                client:# usbip attach -h server -b 1-2
 server:# usbip unbind -b 1-2

This patch fixes the problem by checking the kthread before attempting
to kill it, as it is done on the opposite side in
stub_shutdown_connection().

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: configure.ac: change package data
matt mooney [Mon, 20 Jun 2011 05:44:52 +0000 (22:44 -0700)]
staging: usbip: userspace: configure.ac: change package data

Change package name to usbip-utils, email address to linux-usb, and
bump minor version number.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: usbip: userspace: usbip_network.c: coding style cleanup
matt mooney [Mon, 20 Jun 2011 05:44:49 +0000 (22:44 -0700)]
staging: usbip: userspace: usbip_network.c: coding style cleanup

Change messges to debug, and fix a few coding style issues.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>