From: greg@kroah.com Date: Fri, 8 Oct 2004 01:43:31 +0000 (-0700) Subject: [PATCH] add support for i2c-adapter devices to wait_for_sysfs.c X-Git-Tag: 034~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a13fcb3dd814107d20ff2d26659cb2d6e63b354;p=systemd [PATCH] add support for i2c-adapter devices to wait_for_sysfs.c --- diff --git a/wait_for_sysfs.c b/wait_for_sysfs.c index 0881b619..5e8874cf 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;