summaryrefslogtreecommitdiff
path: root/wait_for_sysfs.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-14 20:36:10 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 22:02:44 -0700
commita75910b4c071c6033e72e18197284eda0bd08f4a (patch)
tree48e5eccada0c71b9897b6ae24b4f3d4d5c33d79f /wait_for_sysfs.c
parent707680b1cf08369da365de1a5e06089621ff8c77 (diff)
[PATCH] fix unusual sysfs behavior for pcmcia_socket
All files in /sys/class/pcmcia_socket/pcmcia_socket0/* are unreadable without a card inserted: read(3, 0x9167858, 4096) = -1 ENODEV (No such device) So we need to skip that step for now.
Diffstat (limited to 'wait_for_sysfs.c')
-rw-r--r--wait_for_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wait_for_sysfs.c b/wait_for_sysfs.c
index 6f396b96ca..292edfad13 100644
--- a/wait_for_sysfs.c
+++ b/wait_for_sysfs.c
@@ -60,7 +60,7 @@ static int wait_for_class_device_attributes(struct sysfs_class_device *class_dev
{ .subsystem = "net", .file = "ifindex" },
{ .subsystem = "scsi_host", .file = "unique_id" },
{ .subsystem = "scsi_device", .file = NULL },
- { .subsystem = "pcmcia_socket", .file = "card_type" },
+ { .subsystem = "pcmcia_socket", .file = NULL }, /* all files are unreadable in empty slot :( */
{ .subsystem = "usb_host", .file = NULL },
{ .subsystem = "bluetooth", .file = "address" },
{ .subsystem = "i2c-adapter", .file = NULL },