| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) ST-Ericsson SA 2010 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson |
|---|
| 5 | 6 | * Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson |
|---|
| 6 | | - * |
|---|
| 7 | | - * License terms:GNU General Public License (GPL) version 2 |
|---|
| 8 | 7 | * |
|---|
| 9 | 8 | * Keypad controller driver for the SKE (Scroll Key Encoder) module used in |
|---|
| 10 | 9 | * the Nomadik 8815 and Ux500 platforms. |
|---|
| .. | .. |
|---|
| 236 | 235 | } |
|---|
| 237 | 236 | |
|---|
| 238 | 237 | irq = platform_get_irq(pdev, 0); |
|---|
| 239 | | - if (irq < 0) { |
|---|
| 240 | | - dev_err(&pdev->dev, "failed to get keypad irq\n"); |
|---|
| 238 | + if (irq < 0) |
|---|
| 241 | 239 | return -EINVAL; |
|---|
| 242 | | - } |
|---|
| 243 | 240 | |
|---|
| 244 | 241 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 245 | 242 | if (!res) { |
|---|