diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-06-02 20:39:49 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-06-29 05:14:29 -0400 |
commit | c1fe7c45260d0ee0e8caca722b469bb4dbd7cdab (patch) | |
tree | 165c6c32150898fdfbe41cbe17f107076f47203e | |
parent | 38f70da3c93205b5b47342c900b6507aa358736f (diff) |
mfd: max77620: Make it explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/mfd/Kconfig:config MFD_MAX77620
drivers/mfd/Kconfig: bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support"
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_i2c_driver() uses the same init level priority as
builtin_i2c_driver() the init ordering remains unchanged with
this commit.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/max77620.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index 199d261990be..84a830598fc9 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/interrupt.h> | 31 | #include <linux/interrupt.h> |
32 | #include <linux/mfd/core.h> | 32 | #include <linux/mfd/core.h> |
33 | #include <linux/mfd/max77620.h> | 33 | #include <linux/mfd/max77620.h> |
34 | #include <linux/module.h> | 34 | #include <linux/init.h> |
35 | #include <linux/of.h> | 35 | #include <linux/of.h> |
36 | #include <linux/of_device.h> | 36 | #include <linux/of_device.h> |
37 | #include <linux/regmap.h> | 37 | #include <linux/regmap.h> |
@@ -566,7 +566,6 @@ static const struct i2c_device_id max77620_id[] = { | |||
566 | {"max20024", MAX20024}, | 566 | {"max20024", MAX20024}, |
567 | {}, | 567 | {}, |
568 | }; | 568 | }; |
569 | MODULE_DEVICE_TABLE(i2c, max77620_id); | ||
570 | 569 | ||
571 | static const struct dev_pm_ops max77620_pm_ops = { | 570 | static const struct dev_pm_ops max77620_pm_ops = { |
572 | SET_SYSTEM_SLEEP_PM_OPS(max77620_i2c_suspend, max77620_i2c_resume) | 571 | SET_SYSTEM_SLEEP_PM_OPS(max77620_i2c_suspend, max77620_i2c_resume) |
@@ -580,11 +579,4 @@ static struct i2c_driver max77620_driver = { | |||
580 | .probe = max77620_probe, | 579 | .probe = max77620_probe, |
581 | .id_table = max77620_id, | 580 | .id_table = max77620_id, |
582 | }; | 581 | }; |
583 | 582 | builtin_i2c_driver(max77620_driver); | |
584 | module_i2c_driver(max77620_driver); | ||
585 | |||
586 | MODULE_DESCRIPTION("MAX77620/MAX20024 Multi Function Device Core Driver"); | ||
587 | MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); | ||
588 | MODULE_AUTHOR("Chaitanya Bandi <bandik@nvidia.com>"); | ||
589 | MODULE_AUTHOR("Mallikarjun Kasoju <mkasoju@nvidia.com>"); | ||
590 | MODULE_LICENSE("GPL v2"); | ||