| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Core driver access RC5T583 power management chip. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Based on code |
|---|
| 8 | 9 | * Copyright (C) 2011 RICOH COMPANY,LTD |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 11 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 12 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 15 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 16 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 17 | | - * more details. |
|---|
| 18 | | - * |
|---|
| 19 | | - * You should have received a copy of the GNU General Public License |
|---|
| 20 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 21 | | - * |
|---|
| 22 | 10 | */ |
|---|
| 23 | 11 | #include <linux/interrupt.h> |
|---|
| 24 | 12 | #include <linux/irq.h> |
|---|
| 25 | 13 | #include <linux/kernel.h> |
|---|
| 26 | | -#include <linux/module.h> |
|---|
| 27 | 14 | #include <linux/init.h> |
|---|
| 28 | 15 | #include <linux/err.h> |
|---|
| 29 | 16 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 298 | 285 | {} |
|---|
| 299 | 286 | }; |
|---|
| 300 | 287 | |
|---|
| 301 | | -MODULE_DEVICE_TABLE(i2c, rc5t583_i2c_id); |
|---|
| 302 | | - |
|---|
| 303 | 288 | static struct i2c_driver rc5t583_i2c_driver = { |
|---|
| 304 | 289 | .driver = { |
|---|
| 305 | 290 | .name = "rc5t583", |
|---|
| .. | .. |
|---|
| 313 | 298 | return i2c_add_driver(&rc5t583_i2c_driver); |
|---|
| 314 | 299 | } |
|---|
| 315 | 300 | subsys_initcall(rc5t583_i2c_init); |
|---|
| 316 | | - |
|---|
| 317 | | -static void __exit rc5t583_i2c_exit(void) |
|---|
| 318 | | -{ |
|---|
| 319 | | - i2c_del_driver(&rc5t583_i2c_driver); |
|---|
| 320 | | -} |
|---|
| 321 | | - |
|---|
| 322 | | -module_exit(rc5t583_i2c_exit); |
|---|
| 323 | | - |
|---|
| 324 | | -MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); |
|---|
| 325 | | -MODULE_DESCRIPTION("RICOH RC5T583 power management system device driver"); |
|---|
| 326 | | -MODULE_LICENSE("GPL v2"); |
|---|