| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * intel_bxtwc_tmu.c - Intel BXT Whiskey Cove PMIC TMU driver |
|---|
| 3 | + * Intel BXT Whiskey Cove PMIC TMU driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 Intel Corporation. All rights reserved. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * This driver adds TMU (Time Management Unit) support for Intel BXT platform. |
|---|
| 7 | 8 | * It enables the alarm wake-up functionality in the TMU unit of Whiskey Cove |
|---|
| 8 | 9 | * PMIC. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or |
|---|
| 11 | | - * modify it under the terms of the GNU General Public License version |
|---|
| 12 | | - * 2 as published by the Free Software Foundation. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | | - * |
|---|
| 19 | 10 | */ |
|---|
| 20 | 11 | |
|---|
| 21 | 12 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 69 | 60 | wctmu->regmap = pmic->regmap; |
|---|
| 70 | 61 | |
|---|
| 71 | 62 | irq = platform_get_irq(pdev, 0); |
|---|
| 72 | | - |
|---|
| 73 | | - if (irq < 0) { |
|---|
| 74 | | - dev_err(&pdev->dev, "invalid irq %d\n", irq); |
|---|
| 63 | + if (irq < 0) |
|---|
| 75 | 64 | return irq; |
|---|
| 76 | | - } |
|---|
| 77 | 65 | |
|---|
| 78 | 66 | regmap_irq_chip = pmic->irq_chip_data_tmu; |
|---|
| 79 | 67 | virq = regmap_irq_get_virq(regmap_irq_chip, irq); |
|---|