summaryrefslogtreecommitdiff
path: root/wait_for_sysfs.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-10-07 18:43:31 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:03 -0700
commit1a13fcb3dd814107d20ff2d26659cb2d6e63b354 (patch)
tree824baa77223ab8520648a6e2b4e5cef73317501f /wait_for_sysfs.c
parent90852564d01bb7d2835b159ba2e572dad1afb37d (diff)
[PATCH] add support for i2c-adapter devices to wait_for_sysfs.c
Diffstat (limited to 'wait_for_sysfs.c')
-rw-r--r--wait_for_sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wait_for_sysfs.c b/wait_for_sysfs.c
index 0881b619c7..5e8874cf7c 100644
--- a/wait_for_sysfs.c
+++ b/wait_for_sysfs.c
@@ -62,6 +62,7 @@ static int wait_for_class_device_attributes(struct sysfs_class_device *class_dev
{ .subsystem = "pcmcia_socket", .file = "card_type" },
{ .subsystem = "usb_host", .file = NULL },
{ .subsystem = "bluetooth", .file = "address" },
+ { .subsystem = "i2c-adapter", .file = NULL },
{ NULL, NULL }
};
struct class_file *classfile;
@@ -151,6 +152,7 @@ static int class_device_expect_no_bus(struct sysfs_class_device *class_dev)
{
static char *devices_without_bus[] = {
"scsi_host",
+ "i2c-adapter",
NULL
};
char **device;