lkml.org 
[lkml]   [2002]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.4.20pre5 trivial compiler warning fix for dv1394.c
attached is a trivial fix for conpiler warnings for dv1394.c if
CONFIG_DEVFS_FS is not defined.
--
Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH

--- drivers/ieee1394/dv1394.c.orig 2002-09-05 22:31:43.000000000 +0200
+++ drivers/ieee1394/dv1394.c 2002-09-05 22:32:10.000000000 +0200
@@ -2580,6 +2580,7 @@
return NULL;
}

+#ifdef CONFIG_DEVFS_FS
static int dv1394_devfs_add_entry(struct video_card *video)
{
char buf[32];
@@ -2674,6 +2675,7 @@
err:
return -ENOMEM;
}
+#endif

void dv1394_devfs_del( char *name)
{
@@ -2852,7 +2854,9 @@
{
struct ti_ohci *ohci;
char buf[16];
+#ifdef CONFIG_DEVFS_FS
struct dv1394_devfs_entry *devfs_entry;
+#endif

/* We only work with the OHCI-1394 driver */
if (strcmp(host->driver->name, OHCI1394_DRIVER_NAME))
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.022 / U:1.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site