]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/zorro/zorro-driver.c
zorro: stop creating attributes by hand
[mirror_ubuntu-bionic-kernel.git] / drivers / zorro / zorro-driver.c
index eacae1434b73fd7472e2d81b5b86ebc214f3e6af..fa23b7366b98ccbea916e05ad1d810e4c5ad0a50 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/module.h>
 #include <linux/zorro.h>
 
+#include "zorro.h"
+
 
     /**
      *  zorro_match_device - Tell if a Zorro device structure has a matching
@@ -161,12 +163,13 @@ static int zorro_uevent(struct device *dev, struct kobj_uevent_env *env)
 }
 
 struct bus_type zorro_bus_type = {
-       .name     = "zorro",
-       .dev_name = "zorro",
-       .match    = zorro_bus_match,
-       .uevent   = zorro_uevent,
-       .probe    = zorro_device_probe,
-       .remove   = zorro_device_remove,
+       .name           = "zorro",
+       .dev_name       = "zorro",
+       .dev_groups     = zorro_device_attribute_groups,
+       .match          = zorro_bus_match,
+       .uevent         = zorro_uevent,
+       .probe          = zorro_device_probe,
+       .remove         = zorro_device_remove,
 };
 EXPORT_SYMBOL(zorro_bus_type);