hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/spi/spi-sh.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH SPI bus driver
34 *
....@@ -5,15 +6,6 @@
56 *
67 * Based on pxa2xx_spi.c:
78 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; version 2 of the License.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
179 */
1810
1911 #include <linux/module.h>
....@@ -445,10 +437,8 @@
445437 }
446438
447439 irq = platform_get_irq(pdev, 0);
448
- if (irq < 0) {
449
- dev_err(&pdev->dev, "platform_get_irq error: %d\n", irq);
440
+ if (irq < 0)
450441 return irq;
451
- }
452442
453443 master = devm_spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data));
454444 if (master == NULL) {
....@@ -517,6 +507,6 @@
517507 module_platform_driver(spi_sh_driver);
518508
519509 MODULE_DESCRIPTION("SH SPI bus driver");
520
-MODULE_LICENSE("GPL");
510
+MODULE_LICENSE("GPL v2");
521511 MODULE_AUTHOR("Yoshihiro Shimoda");
522512 MODULE_ALIAS("platform:sh_spi");