hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/mfd/tps65910.c
....@@ -1,20 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * tps65910.c -- TI TPS6591x
3
+ * tps65910.c -- TI TPS6591x chip family multi-function driver
34 *
45 * Copyright 2010 Texas Instruments Inc.
56 *
67 * Author: Graeme Gregory <gg@slimlogic.co.uk>
78 * Author: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk>
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the
11
- * Free Software Foundation; either version 2 of the License, or (at your
12
- * option) any later version.
13
- *
149 */
1510
16
-#include <linux/module.h>
17
-#include <linux/moduleparam.h>
1811 #include <linux/init.h>
1912 #include <linux/err.h>
2013 #include <linux/slab.h>
....@@ -374,7 +367,6 @@
374367 { .compatible = "ti,tps65911", .data = (void *)TPS65911},
375368 { },
376369 };
377
-MODULE_DEVICE_TABLE(of, tps65910_of_match);
378370
379371 static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
380372 unsigned long *chip_id)
....@@ -527,8 +519,6 @@
527519 { "tps65911", TPS65911 },
528520 { }
529521 };
530
-MODULE_DEVICE_TABLE(i2c, tps65910_i2c_id);
531
-
532522
533523 static struct i2c_driver tps65910_i2c_driver = {
534524 .driver = {
....@@ -545,14 +535,3 @@
545535 }
546536 /* init early so consumer devices can complete system boot */
547537 subsys_initcall(tps65910_i2c_init);
548
-
549
-static void __exit tps65910_i2c_exit(void)
550
-{
551
- i2c_del_driver(&tps65910_i2c_driver);
552
-}
553
-module_exit(tps65910_i2c_exit);
554
-
555
-MODULE_AUTHOR("Graeme Gregory <gg@slimlogic.co.uk>");
556
-MODULE_AUTHOR("Jorge Eduardo Candelaria <jedu@slimlogic.co.uk>");
557
-MODULE_DESCRIPTION("TPS6591x chip family multi-function driver");
558
-MODULE_LICENSE("GPL");