chiark / gitweb /
[PATCH] wait_for_sysfs bluetooth class update
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Thu, 7 Oct 2004 08:34:31 +0000 (01:34 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:37:03 +0000 (21:37 -0700)
Here is the file to wait for the bluetooth class, as it is not a "dev"
file. udev waits for 10 seconds here too.

wait_for_sysfs.c

index 28ff43bdb5370dc07179bcba4751523269e0d1c0..0881b619c7aa9e15e44e6d21158b0aa0221cfc56 100644 (file)
@@ -61,6 +61,7 @@ static int wait_for_class_device_attributes(struct sysfs_class_device *class_dev
                { .subsystem = "scsi_device",   .file = NULL },
                { .subsystem = "pcmcia_socket", .file = "card_type" },
                { .subsystem = "usb_host",      .file = NULL },
+               { .subsystem = "bluetooth",     .file = "address" },
                { NULL, NULL }
        };
        struct class_file *classfile;