]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/s390/cio/chsc_sch.c
Driver core: implement uevent suppress in kobject
[linux-2.6-omap-h63xx.git] / drivers / s390 / cio / chsc_sch.c
index f49f0e502b8dfb7f144801db8aa57d975a2dc7b7..93eca1731b81a56bb7d934a8c5e62119e8178eb9 100644 (file)
@@ -61,7 +61,7 @@ static void chsc_subchannel_irq(struct subchannel *sch)
        }
        private->request = NULL;
        memcpy(&request->irb, irb, sizeof(*irb));
-       stsch(sch->schid, &sch->schib);
+       cio_update_schib(sch);
        complete(&request->completion);
        put_device(&sch->dev);
 }
@@ -84,8 +84,8 @@ static int chsc_subchannel_probe(struct subchannel *sch)
                kfree(private);
        } else {
                sch->private = private;
-               if (sch->dev.uevent_suppress) {
-                       sch->dev.uevent_suppress = 0;
+               if (dev_get_uevent_suppress(&sch->dev)) {
+                       dev_set_uevent_suppress(&sch->dev, 0);
                        kobject_uevent(&sch->dev.kobj, KOBJ_ADD);
                }
        }