/*** DEVFS HELPERS *********************************************************/
+#ifdef CONFIG_DEVFS_FS
struct dv1394_devfs_entry *
dv1394_devfs_find( char *name)
{
err:
return -ENOMEM;
}
+#endif /* CONFIG_DEVFS */
void dv1394_devfs_del( char *name)
{
{
struct ti_ohci *ohci;
char buf[16];
- struct dv1394_devfs_entry *devfs_entry;
/* We only work with the OHCI-1394 driver */
if (strcmp(host->driver->name, OHCI1394_DRIVER_NAME))
#endif
#ifdef CONFIG_DEVFS_FS
+{
+ struct dv1394_devfs_entry *devfs_entry;
devfs_entry = dv1394_devfs_find("dv");
if (devfs_entry != NULL) {
snprintf(buf, sizeof(buf), "host%d", ohci->id);
dv1394_devfs_add_dir("NTSC", devfs_entry, NULL);
dv1394_devfs_add_dir("PAL", devfs_entry, NULL);
}
+}
#endif
dv1394_init(ohci, DV1394_NTSC, MODE_RECEIVE);