On Sat, Apr 08, 2017 at 11:23:43PM +0200, Hans de Goede wrote: [snip] > Changes in v3: > -memset the entire acpi_dev_present_info struct, this fixes > acpi_device_id.cls not getting cleared [snip] > +bool acpi_dev_present(const char *hid, const char *uid, int hrv) > +{ > + struct acpi_dev_present_info match; > + struct device *dev; > + > + memset(&match, 0, sizeof(match)); Just use struct acpi_dev_present_info match = {}; That's how I did it in parse_acpi_path() in commit 46cd4b75cd0e. Copy+paste is hard. ;-) Best regards, Lukas -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html