diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-12-13 23:33:19 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-01-13 13:06:03 +0300 |
commit | c698d639f72b55686ec3518d2bc8dc5f2eca9354 (patch) | |
tree | 02bd142f283819860018ec64910bf9c441d8df66 /sound/synth | |
parent | c55281531282930de0aace46b2d6b22653937818 (diff) | |
download | linux-c698d639f72b55686ec3518d2bc8dc5f2eca9354.tar.xz |
i2c: create builtin_i2c_driver to avoid registration boilerplate
In commit f309d4443130bf814e991f836e919dca22df37ae ("platform_device:
better support builtin boilerplate avoidance") we introduced the
builtin_driver macro.
Here we use that support and extend it to I2C driver registration,
so where a driver is clearly non-modular and builtin-only, we can
register it in a similar fashion. And existing code that is clearly
non-modular can be updated with the simple mapping of
module_i2c_driver(...) ---> builtin_i2c_driver(...)
We've essentially cloned the former to make the latter, and taken
out the remove/module_exit parts since those never get used in a
non-modular build of the code.
A similar thing was done in commit b4eb6cdbbd13698704863f680c643c569909e1c2
("PCI: Add builtin_pci_driver() to avoid registration boilerplate").
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions