hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ata/ata_piix.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ata_piix.c - Intel PATA/SATA controllers
34 *
....@@ -5,32 +6,14 @@
56 * Please ALWAYS copy linux-ide@vger.kernel.org
67 * on emails.
78 *
8
- *
99 * Copyright 2003-2005 Red Hat Inc
1010 * Copyright 2003-2005 Jeff Garzik
11
- *
1211 *
1312 * Copyright header from piix.c:
1413 *
1514 * Copyright (C) 1998-1999 Andrzej Krzysztofowicz, Author and Maintainer
1615 * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org>
1716 * Copyright (C) 2003 Red Hat Inc
18
- *
19
- *
20
- * This program is free software; you can redistribute it and/or modify
21
- * it under the terms of the GNU General Public License as published by
22
- * the Free Software Foundation; either version 2, or (at your option)
23
- * any later version.
24
- *
25
- * This program is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- * GNU General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU General Public License
31
- * along with this program; see the file COPYING. If not, write to
32
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
33
- *
3417 *
3518 * libata documentation is available via 'make {ps|pdf}docs',
3619 * as Documentation/driver-api/libata.rst
....@@ -858,6 +841,12 @@
858841 },
859842 },
860843 {
844
+ .ident = "TECRA M3",
845
+ .matches = {
846
+ DMI_MATCH(DMI_OEM_STRING, "Tecra M3,"),
847
+ },
848
+ },
849
+ {
861850 .ident = "TECRA M4",
862851 .matches = {
863852 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
....@@ -972,17 +961,9 @@
972961
973962 { } /* terminate list */
974963 };
975
- static const char *oemstrs[] = {
976
- "Tecra M3,",
977
- };
978
- int i;
979964
980965 if (dmi_check_system(sysids))
981966 return 1;
982
-
983
- for (i = 0; i < ARRAY_SIZE(oemstrs); i++)
984
- if (dmi_find_device(DMI_DEV_TYPE_OEM_STRING, oemstrs[i], NULL))
985
- return 1;
986967
987968 /* TECRA M4 sometimes forgets its identify and reports bogus
988969 * DMI information. As the bogus information is a bit