[media] shark,shark2: declare resume/suspend functions as static
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 20:37:40 +0000 (17:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 20:42:13 +0000 (17:42 -0300)
drivers/media/radio/shark2.o: In function `_GLOBAL__sub_I_65535_0_usb_shark_suspend':
drivers/media/radio/radio-shark2.c:344: multiple definition of `usb_shark_suspend'
drivers/media/radio/radio-shark.o:/home/v4l/v4l/patchwork/drivers/media/radio/radio-shark.c:379: first defined here
drivers/media/radio/shark2.o: In function `usb_shark_resume':
drivers/media/radio/radio-shark2.c:349: multiple definition of `usb_shark_resume'
drivers/media/radio/radio-shark.o:/home/v4l/v4l/patchwork/drivers/media/radio/radio-shark.c:384: first defined here

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-shark.c
drivers/media/radio/radio-shark2.c

index 248bc3a30832734f99b9ade6feb4a3810c22dbba..8c309c7134d7f0e0abb60be8a83e03578e2cfc9e 100644 (file)
@@ -375,12 +375,12 @@ err_alloc_buffer:
 }
 
 #ifdef CONFIG_PM
-int usb_shark_suspend(struct usb_interface *intf, pm_message_t message)
+static int usb_shark_suspend(struct usb_interface *intf, pm_message_t message)
 {
        return 0;
 }
 
-int usb_shark_resume(struct usb_interface *intf)
+static int usb_shark_resume(struct usb_interface *intf)
 {
        struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
        struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
index 9740c760b73ce1b188136d3946bbd06ee89f4830..ef65ebbd536451a276244e0119da4b2674fe97b1 100644 (file)
@@ -340,12 +340,12 @@ err_alloc_buffer:
 }
 
 #ifdef CONFIG_PM
-int usb_shark_suspend(struct usb_interface *intf, pm_message_t message)
+static int usb_shark_suspend(struct usb_interface *intf, pm_message_t message)
 {
        return 0;
 }
 
-int usb_shark_resume(struct usb_interface *intf)
+static int usb_shark_resume(struct usb_interface *intf)
 {
        struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
        struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
This page took 0.028372 seconds and 5 git commands to generate.