]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[media] staging: as102: Enable compilation
authorPiotr Chmura <chmooreck@poczta.onet.pl>
Mon, 31 Oct 2011 15:24:52 +0000 (12:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 09:44:01 +0000 (07:44 -0200)
Fix compilation errors in the USB driver by replacing usb_buffer_free(),
usb_buffer_alloc() with usb_free_coherent() and usb_alloc_coherent().
Add entries for the driver in parent Makefile and Kconfig.

[snjw23@gmail.com: minor edit to changelog]
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Piotr Chmura <chmooreck@poczta.onet.pl>
Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/media/as102/as102_usb_drv.c

index d132c27dfb3f4dd476077ec743d73a48374e2784..0e1bc6dccccb08514e16610f4fec21d30423bc39 100644 (file)
@@ -144,4 +144,6 @@ source "drivers/staging/mei/Kconfig"
 
 source "drivers/staging/nvec/Kconfig"
 
+source "drivers/staging/media/as102/Kconfig"
+
 endif # STAGING
index 936b7c22e18e2eebff3232841688dba57c6e0142..51999860b0f6a59aedcb7b53eb76df175dc4c261 100644 (file)
@@ -63,3 +63,4 @@ obj-$(CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4)  += ste_rmi4/
 obj-$(CONFIG_DRM_PSB)          += gma500/
 obj-$(CONFIG_INTEL_MEI)                += mei/
 obj-$(CONFIG_MFD_NVEC)         += nvec/
+obj-$(CONFIG_DVB_AS102)                += media/as102/
index 3a3dd777f70a4790cf8b5e524db1a0bfa4d9c1e9..2586d55374988ce3206e6d28dda973e488d1d4e0 100644 (file)
@@ -238,7 +238,7 @@ static void as102_free_usb_stream_buffer(struct as102_dev_t *dev)
        for (i = 0; i < MAX_STREAM_URB; i++)
                usb_free_urb(dev->stream_urb[i]);
 
-       usb_buffer_free(dev->bus_adap.usb_dev,
+       usb_free_coherent(dev->bus_adap.usb_dev,
                        MAX_STREAM_URB * AS102_USB_BUF_SIZE,
                        dev->stream,
                        dev->dma_addr);
@@ -251,7 +251,7 @@ static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev)
 
        ENTER();
 
-       dev->stream = usb_buffer_alloc(dev->bus_adap.usb_dev,
+       dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev,
                                       MAX_STREAM_URB * AS102_USB_BUF_SIZE,
                                       GFP_KERNEL,
                                       &dev->dma_addr);