From: Thomas Courbon Date: Wed, 20 Jul 2011 20:57:44 +0000 (+0200) Subject: Platform: fix samsung-laptop DMI identification for N150/N210/220/N230 X-Git-Tag: v3.1-rc1~14^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78a7539b;p=karo-tx-linux.git Platform: fix samsung-laptop DMI identification for N150/N210/220/N230 Some samsung latop of the N150/N2{10,20,30} serie are badly detected by the samsung-laptop platform driver, see bug # 36082. It appears that N230 identifies itself as N150/N210/N220/N230 whereas the other identify themselves as N150/N210/220. This patch attemtp fix #36082 allowing correct identification for all the said netbook model. Reported-by: Daniel Eklöf Signed-off-by: Thomas Courbon Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index e12c88e92c4e..359163011044 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -610,6 +610,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = { }, .callback = dmi_check_cb, }, + { + .ident = "N150/N210/N220", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, + "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "N150/N210/N220"), + DMI_MATCH(DMI_BOARD_NAME, "N150/N210/N220"), + }, + .callback = dmi_check_cb, + }, { .ident = "N150/N210/N220/N230", .matches = {