]> Pileus Git - ~andy/linux/blobdiff - drivers/thermal/thermal_core.c
genetlink: pass family to functions using groups
[~andy/linux] / drivers / thermal / thermal_core.c
index 4962a6aaf2957d737dfadc2376e803d5d849ff7b..2570a944fffcc41cc1824e4be4273a84928d0859 100644 (file)
@@ -1675,7 +1675,8 @@ int thermal_generate_netlink_event(struct thermal_zone_device *tz,
                return result;
        }
 
-       result = genlmsg_multicast(skb, 0, thermal_event_mcgrp.id, GFP_ATOMIC);
+       result = genlmsg_multicast(&thermal_event_genl_family, skb, 0,
+                                  thermal_event_mcgrp.id, GFP_ATOMIC);
        if (result)
                dev_err(&tz->device, "Failed to send netlink event:%d", result);