rfkill: fix up grandparent driver name detection

This commit is contained in:
Dan Williams 2012-08-17 15:28:17 -05:00
parent ee920262ac
commit 0065165901

View file

@ -123,7 +123,7 @@ killswitch_new (GUdevDevice *device, RfKillType rtype)
/* Sigh; try the grandparent */
grandparent = g_udev_device_get_parent (parent);
if (grandparent)
driver = g_udev_device_get_property (parent, "DRIVER");
driver = g_udev_device_get_property (grandparent, "DRIVER");
}
}