diff options
Diffstat (limited to 'drivers/platform/x86')
| -rw-r--r-- | drivers/platform/x86/dell/alienware-wmi-wmax.c | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/drivers/platform/x86/dell/alienware-wmi-wmax.c b/drivers/platform/x86/dell/alienware-wmi-wmax.c index 31f9643a6a3b..f417dcc9af35 100644 --- a/drivers/platform/x86/dell/alienware-wmi-wmax.c +++ b/drivers/platform/x86/dell/alienware-wmi-wmax.c @@ -210,6 +210,14 @@ static const struct dmi_system_id awcc_dmi_table[] __initconst = {  		.driver_data = &g_series_quirks,  	},  	{ +		.ident = "Dell Inc. G15 5530", +		.matches = { +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), +			DMI_MATCH(DMI_PRODUCT_NAME, "Dell G15 5530"), +		}, +		.driver_data = &g_series_quirks, +	}, +	{  		.ident = "Dell Inc. G16 7630",  		.matches = {  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), @@ -1639,7 +1647,7 @@ static int wmax_wmi_probe(struct wmi_device *wdev, const void *context)  static int wmax_wmi_suspend(struct device *dev)  { -	if (awcc->hwmon) +	if (awcc && awcc->hwmon)  		awcc_hwmon_suspend(dev);  	return 0; @@ -1647,7 +1655,7 @@ static int wmax_wmi_suspend(struct device *dev)  static int wmax_wmi_resume(struct device *dev)  { -	if (awcc->hwmon) +	if (awcc && awcc->hwmon)  		awcc_hwmon_resume(dev);  	return 0; | 
