diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2019-11-07 06:32:53 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-07 06:34:25 +0300 |
commit | dee58fe8dc57dfd5a760ad05c3526787f832ad78 (patch) | |
tree | f8ee3e71787a61dc2e74a5f4c955fe51a3e72794 /drivers/ata/ata_piix.c | |
parent | e9f691d899188679746eeb96e6cb520459eda9b4 (diff) | |
download | linux-dee58fe8dc57dfd5a760ad05c3526787f832ad78.tar.xz |
ata_piix: remove open-coded dmi_match(DMI_OEM_STRING)
Since de40614de99 ("firmware: dmi_scan: Add DMI_OEM_STRING support to
dmi_matches") dmi_check_system() can match OEM_STRINGs itself.
Use the feature.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r-- | drivers/ata/ata_piix.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index e4da725381d3..3ca7720e7d8f 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -841,6 +841,12 @@ static int piix_broken_suspend(void) }, }, { + .ident = "TECRA M3", + .matches = { + DMI_MATCH(DMI_OEM_STRING, "Tecra M3,"), + }, + }, + { .ident = "TECRA M4", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), @@ -955,18 +961,10 @@ static int piix_broken_suspend(void) { } /* terminate list */ }; - static const char *oemstrs[] = { - "Tecra M3,", - }; - int i; if (dmi_check_system(sysids)) return 1; - for (i = 0; i < ARRAY_SIZE(oemstrs); i++) - if (dmi_find_device(DMI_DEV_TYPE_OEM_STRING, oemstrs[i], NULL)) - return 1; - /* TECRA M4 sometimes forgets its identify and reports bogus * DMI information. As the bogus information is a bit * generic, match as many entries as possible. This manual |