| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SH SPI bus driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Based on pxa2xx_spi.c: |
|---|
| 7 | 8 | * 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. |
|---|
| 17 | 9 | */ |
|---|
| 18 | 10 | |
|---|
| 19 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 445 | 437 | } |
|---|
| 446 | 438 | |
|---|
| 447 | 439 | 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) |
|---|
| 450 | 441 | return irq; |
|---|
| 451 | | - } |
|---|
| 452 | 442 | |
|---|
| 453 | 443 | master = devm_spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data)); |
|---|
| 454 | 444 | if (master == NULL) { |
|---|
| .. | .. |
|---|
| 517 | 507 | module_platform_driver(spi_sh_driver); |
|---|
| 518 | 508 | |
|---|
| 519 | 509 | MODULE_DESCRIPTION("SH SPI bus driver"); |
|---|
| 520 | | -MODULE_LICENSE("GPL"); |
|---|
| 510 | +MODULE_LICENSE("GPL v2"); |
|---|
| 521 | 511 | MODULE_AUTHOR("Yoshihiro Shimoda"); |
|---|
| 522 | 512 | MODULE_ALIAS("platform:sh_spi"); |
|---|