return strcmp(dev_name(dev), drv->name) == 0;
 }
 
+/*
+ * Note that this is really only needed for backwards compatibility
+ * with libdrm, which parses this information from sysfs and will
+ * fail if it can't find the OF_FULLNAME, specifically.
+ */
 static int host1x_device_uevent(const struct device *dev,
                                struct kobj_uevent_env *env)
 {
-       struct device_node *np = dev->parent->of_node;
-       unsigned int count = 0;
-       struct property *p;
-       const char *compat;
-
-       /*
-        * This duplicates most of of_device_uevent(), but the latter cannot
-        * be called from modules and operates on dev->of_node, which is not
-        * available in this case.
-        *
-        * Note that this is really only needed for backwards compatibility
-        * with libdrm, which parses this information from sysfs and will
-        * fail if it can't find the OF_FULLNAME, specifically.
-        */
-       add_uevent_var(env, "OF_NAME=%pOFn", np);
-       add_uevent_var(env, "OF_FULLNAME=%pOF", np);
-
-       of_property_for_each_string(np, "compatible", p, compat) {
-               add_uevent_var(env, "OF_COMPATIBLE_%u=%s", count, compat);
-               count++;
-       }
-
-       add_uevent_var(env, "OF_COMPATIBLE_N=%u", count);
+       of_device_uevent(dev->parent, env);
 
        return 0;
 }