|
@@ -172,8 +172,15 @@ static void __init find_tokens(const struct dmi_header *dm, void *dummy)
|
|
|
|
|
|
static int __init dell_smbios_init(void)
|
|
static int __init dell_smbios_init(void)
|
|
{
|
|
{
|
|
|
|
+ const struct dmi_device *valid;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ valid = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL);
|
|
|
|
+ if (!valid) {
|
|
|
|
+ pr_err("Unable to run on non-Dell system\n");
|
|
|
|
+ return -ENODEV;
|
|
|
|
+ }
|
|
|
|
+
|
|
dmi_walk(find_tokens, NULL);
|
|
dmi_walk(find_tokens, NULL);
|
|
|
|
|
|
if (!da_tokens) {
|
|
if (!da_tokens) {
|