aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-17staging: brcm80211: fix makefiles for building drivers in kernelArend van Spriel2-2/+2
The makefiles used obj-m which forcibly builds the drivers as modules ignoring the Kconfig setting. This has been fixed in this patch. Cc: [email protected] Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: cleanup functions in nvram.cArend van Spriel4-393/+10
Several function in nvram.c take a pointer value which is not actually used. These are removed and the header file contained some other prototypes that were not implemented. As this source file was the only one using the header file siutils.h it has been removed. Cc: [email protected] Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: make function definitions and prototype consistentArend van Spriel1-4/+4
Couple of functions that are only used within wlc_channel.c have been prototyped with static keyword. For the function definition itself this has been added when missing. Cc: [email protected] Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: remove unused functions and prototypesArend van Spriel3-78/+0
Several functions in wlc_bmac.c are not used in the driver and prototypes in wlc_pub.h that have no implementation. These have been removed. Cc: [email protected] Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: remove unnecessary functions from wlc_main.cArend van Spriel3-476/+4
Couple of functions were not needed and have been removed. Cc: [email protected] Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: got rid of #ifdef __mips__ by new dma_spin_for_len()Roland Vossen2-10/+20
Code cleanup. Cc: [email protected] Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: brcm80211: replaced IL_BIGENDIAN by __BIG_ENDIANRoland Vossen4-12/+9
Code cleanup. IL_BIGENDIAN was a Broadcom specific define. Cc: [email protected] Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of utils.h to hyperv.hK. Y. Srinivasan5-123/+97
Move the contents of utils.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of vmbus.h to hyperv.hK. Y. Srinivasan11-60/+20
Move the contents of vmbus.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of vmbus_api.h to hyperv.hK. Y. Srinivasan9-98/+69
Move the contents of vmbus_api.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of logging.h to hyperv.hK. Y. Srinivasan17-113/+68
Move the contents of logging.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of channel.h to hyperv.hK. Y. Srinivasan10-120/+82
Move the contents of channel.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of channel_mgmt.h to hyperv.hK. Y. Srinivasan4-318/+290
Move the contents of channel_mgmt.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of vmbus_packet_format.h to hyperv.hK. Y. Srinivasan8-167/+133
Move the contents of vmbus_packet_format.h to hyperv.h Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of vmbus_channel_interface.h to hyperv.hK. Y. Srinivasan6-94/+65
Move the contents of vmbus_channel_interface.h to hyperv.h Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move the contents of the file version_info.h to hyperv.hK. Y. Srinivasan9-55/+21
Move the contents of the file version_info.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Move a subset of definitions from ring_buffer.h to hyperv.hK. Y. Srinivasan2-43/+41
Move a subset of definitions from ring_buffer.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Add a subset of definitions from vmbus_api.h to hyperv.hK. Y. Srinivasan2-30/+30
Add a subset of definitions from vmbus_api.h to hyperv.h. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Include the newly created header file in all of the relevant ↵K. Y. Srinivasan17-5/+37
hyperv files Include the newly created header file in all of the relevant hyperv files. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17Staging: hv: Create a common header for all hyperv drivers to includeK. Y. Srinivasan1-0/+23
Create a common header for all hyperv drivers to include. When we exit staging, this would land under include/linux. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17drivers/staging/vt6656/main_usb.c: Delete unnecessary call to usb_kill_urbJulia Lawall1-3/+0
Since in each case nothing has been done with the recently allocated urb, it is not necessary to kill it before freeing it. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ expression urb; statement S; position p1,p2; @@ urb = usb_alloc_urb@p1(...); ... when != urb if (urb == NULL) S ... when != urb usb_kill_urb@p2(urb); @other exists@ position r.p1,r.p2; @@ ... when != usb_alloc_urb@p1(...) usb_kill_urb@p2(...); @depends on !other exists@ expression urb; position r.p1,r.p2; @@ urb = usb_alloc_urb@p1(...); ... ( -usb_kill_urb@p2(urb); +usb_free_urb(urb); ... when != urb | -usb_kill_urb@p2(urb); ) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17gma500: finish off the fault handlerAlan Cox4-20/+93
GEM wants to mmap the object through the GTT (which avoids aliasing) so we need to put the object into the GTT before we provide the fault mapping for it. While we are at it update the pin interface so that it digs dev out of the GEM object itself. This provides a rather cleaner API and call environment. Fix th refcount/on-off confusion in the pin API. At this point we get a bit further with modetest but if we write to the new GEM mapping we hang solid and as yet I don't know why. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17gma500: Don't try and take a GEM handle of a non GEM fbAlan Cox1-0/+2
The initial GMA500 framebuffer is not GEM but stolen memory. We can't therefore take a GEM handle of it. Stop anyone trying to do this and causing a crash. Ideally we need a way to have GEM handles to non GEM objects but it's not clear how and if GEM and the modesetting/fb interfaces it provides are supposed to or indeed if they can handle it. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17comedi vmk80xx: Style improvementsJ. Ali Harlow1-53/+74
Style improvements to comedi driver vmk80xx: * One variable definition per line * Block quotes start and end with near-empty lines * If..else statements use braces for both branches * Egregious blank lines removed * Use if..else rather than goto where trivial * Don't put function return type on a separate line Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-17staging: usbip: fix wrong endian conversionDavid Chang1-1/+1
Fix number_of_packets wrong endian conversion in function correct_endian_ret_submit() Signed-off-by: David Chang <[email protected]> Acked-by: Arjan Mels <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-12iio: adc: ad7780: Add missing GPIOLIB dependencyMichael Hennerich1-0/+1
Signed-off-by: Michael Hennerich <[email protected]> Reported-by: Randy Dunlap <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-12iio: trigger: iio-trig-bfin-timer: select missing dependencyMichael Hennerich1-0/+1
This driver requires CONFIG_BFIN_GPTIMERS. Signed-off-by: Michael Hennerich <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-12staging: usbip: edit Kconfig and rename CONFIG optionsmatt mooney6-36/+38
Change modules usbip_common_mod to usbip-core and usbip to usbip-host; edit configuration option help text; rename CONFIG options to use a USBIP prefix and change COMMON to CORE in both the Kconfig and Makefiles; edit the menu entries; and edit the driver descriptions. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-12staging: usbip: fix header includesmatt mooney13-26/+42
Modify header directives to include what is needed by each file and not already included in its own header. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: usbip: vhci.h: reorganizematt mooney1-3/+5
Split function declarations by source file. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: usbip: stub.h: reorganizematt mooney1-9/+10
Move a few functions around for better organization and add missing parameter names in function declarations. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: usbip: use single version for all modulesmatt mooney4-9/+8
Having separate versions in this situation makes little sense, so USBIP_VERSION will be used by all modules. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: usbip: change debug configuration optionmatt mooney4-10/+9
Change CONFIG_USB_IP_DEBUG_ENABLE to CONFIG_USB_IP_DEBUG, and move ccflags- to the head of the makefile. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11gma500: enable GEM mmapAlan Cox2-6/+84
Support mapping of GEM objects. This ought to be a small plumbing change but instead we have to cut and paste a pile of stuff into the driver. This really wants to be handled *IN* GEM You can now allocate, mmap and munmap GEM objects in the driver. You can't yet map them into the GART or display them however. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11sst: tweak the shared functions so we don't crash the ASoC driverAlan Cox1-1/+3
The ASoC driver is currently pulling bits from staging rather than its own copy. Post all the merges and fixes we've put back an assumption that crashes ASoC so we need to fix it differently. (See 0ed625b2f2751c249417bd28694e37ef48eb5fbb) Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: brcm80211: fix checkpatch issue introduced in dhd_sdio.cArend van Spriel1-2/+5
Patch "[2349e278] move utility functions into new module" introduced a checkpatch warning which is resolved with this patch. Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: brcm80211: use print_hex_dump_bytes kernel functionArend van Spriel4-70/+70
The drivers had own implementation to dump buffer contents using printk. This has been replaced by kernel function. Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: brcm80211: remove definition of BCMFASTPATH macroArend van Spriel11-61/+55
The macro was used to assure function flagged with this macro were placed in a named section. However, in the linux build enviroment there is no such section specified in the linker scripts so it makes no sense to keep it in. Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: brcm80211: cleanup unnecessary functions from wlc_ampdu.cArend van Spriel3-81/+8
Couple of functions are not used or empty and have been removed. Cc: [email protected] Reviewed-by: Henry Ptasinski <[email protected]> Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11staging: brcm80211: move utility functions into new moduleHenry Ptasinski21-172/+251
Move utility functions shared by the brcmsmac and brcmfmac drivers into a new module, brcmutil.ko. This eliminates the need to compile and link the shared functions into both drivers. Prefix all exported symbols with "bcm_". Cc: [email protected] Reviewed-by: Roland Vossen <[email protected]> Reviewed-by: Brett Rudley <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: mouse_drv: Get rid of some unused codeK. Y. Srinivasan1-14/+0
Now, get rid of struct mousevsc_drv_obj. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Make mousevsc_drv an instance of struct hv_driverK. Y. Srinivasan1-9/+9
In preparation to eliminate struct mousevsc_drv_obj, make struct mousevsc_drv an instance of struct hv_driver. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Get rid of an empty function mouse_vsc_initialize()K. Y. Srinivasan1-10/+0
Now, get rid of the empty function. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: mouse_drv: Move the code to copy dev_type informationK. Y. Srinivasan1-2/+2
In preparation to eliminate mouse_vsc_initialize, move the code that copies the dev_type info. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: mouse_drv: Move the assignment of name variableK. Y. Srinivasan1-1/+1
In preparation to eliminate mouse_vsc_initialize, move the assignment of driver name. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: mouse_drv: Directly assign the driver nameK. Y. Srinivasan1-1/+1
Directly assign the driver name. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Get rid of struct storvsc_driverK. Y. Srinivasan1-5/+0
Now get rid of struct storvsc_driver as it is not needed. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Make blkvsc_drv an instance of struct hv_driverK. Y. Srinivasan1-6/+6
Make blkvsc_drv an instance of struct hv_driver. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Make storvsc_drv an instance of hv_driverK. Y. Srinivasan1-5/+5
In preparation for eliminating struct storvsc_driver, make the variable storvsc_drv an instance of struct hv_driver. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-11Staging: hv: Get rid of some unused functions from storvsc_api.hK. Y. Srinivasan1-12/+0
Now get rid of unused functions. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>