Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1312441 > unrolled thread

[PATCH 2/2] media: au0828 fix au0828_media_device_register warn

Started byShuah Khan <shuahkh@osg.samsung.com>
First post2016-01-19 19:40 +0100
Last post2016-01-19 19:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] media: au0828 fix au0828_media_device_register warn Shuah Khan <shuahkh@osg.samsung.com> - 2016-01-19 19:40 +0100

#1312441 — [PATCH 2/2] media: au0828 fix au0828_media_device_register warn

FromShuah Khan <shuahkh@osg.samsung.com>
Date2016-01-19 19:40 +0100
Subject[PATCH 2/2] media: au0828 fix au0828_media_device_register warn
Message-ID<qSJm9-3dX-1@gated-at.bofh.it>
Fix the following compile warns for MEDIA_CONTROLLER
disabled case.

drivers/media/usb/au0828/au0828-core.c:539:12: warning: ‘au0828_media_device_register’ defined but not used [-Wunused-function]
 static int au0828_media_device_register(struct au0828_dev *dev,

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 drivers/media/usb/au0828/au0828-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c
index 7dda0dd..d25f7ac 100644
--- a/drivers/media/usb/au0828/au0828-core.c
+++ b/drivers/media/usb/au0828/au0828-core.c
@@ -536,10 +536,10 @@ end:
 }
 #endif
 
+#ifdef CONFIG_MEDIA_CONTROLLER
 static int au0828_media_device_register(struct au0828_dev *dev,
 					struct usb_device *udev)
 {
-#ifdef CONFIG_MEDIA_CONTROLLER
 	int ret;
 
 	if (!dev->media_dev)
@@ -570,9 +570,9 @@ static int au0828_media_device_register(struct au0828_dev *dev,
 	dev->media_dev->source_priv = (void *) dev;
 	dev->media_dev->enable_source = au0828_enable_source;
 	dev->media_dev->disable_source = au0828_disable_source;
-#endif
 	return 0;
 }
+#endif
 
 static int au0828_usb_probe(struct usb_interface *interface,
 	const struct usb_device_id *id)
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web