diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-12-18 15:32:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-10 06:34:28 -0500 |
commit | 0e2a706b04c1d117c77ee47a41fd978afa25d67e (patch) | |
tree | 74698929b65473b0e3772298a99ee7db82334f1a | |
parent | 8ddc2dd0832e062bbb36e965e5a202a7d0b584a0 (diff) |
[media] tea575x: convert to library
The module is used only as a library for now. Remove module init and exit
routines to show this.
While here, remove FSF snail address and attach EXPORT_SYMBOL() macros to
corresponding functions.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/radio/tea575x.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/drivers/media/radio/tea575x.c b/drivers/media/radio/tea575x.c index 3e08475af579..4dc2067bce14 100644 --- a/drivers/media/radio/tea575x.c +++ b/drivers/media/radio/tea575x.c | |||
@@ -14,10 +14,6 @@ | |||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. |
16 | * | 16 | * |
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | * | ||
21 | */ | 17 | */ |
22 | 18 | ||
23 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
@@ -226,6 +222,7 @@ void snd_tea575x_set_freq(struct snd_tea575x *tea) | |||
226 | snd_tea575x_write(tea, tea->val); | 222 | snd_tea575x_write(tea, tea->val); |
227 | tea->freq = snd_tea575x_val_to_freq(tea, tea->val); | 223 | tea->freq = snd_tea575x_val_to_freq(tea, tea->val); |
228 | } | 224 | } |
225 | EXPORT_SYMBOL(snd_tea575x_set_freq); | ||
229 | 226 | ||
230 | /* | 227 | /* |
231 | * Linux Video interface | 228 | * Linux Video interface |
@@ -582,25 +579,11 @@ int snd_tea575x_init(struct snd_tea575x *tea, struct module *owner) | |||
582 | 579 | ||
583 | return 0; | 580 | return 0; |
584 | } | 581 | } |
582 | EXPORT_SYMBOL(snd_tea575x_init); | ||
585 | 583 | ||
586 | void snd_tea575x_exit(struct snd_tea575x *tea) | 584 | void snd_tea575x_exit(struct snd_tea575x *tea) |
587 | { | 585 | { |
588 | video_unregister_device(&tea->vd); | 586 | video_unregister_device(&tea->vd); |
589 | v4l2_ctrl_handler_free(tea->vd.ctrl_handler); | 587 | v4l2_ctrl_handler_free(tea->vd.ctrl_handler); |
590 | } | 588 | } |
591 | |||
592 | static int __init alsa_tea575x_module_init(void) | ||
593 | { | ||
594 | return 0; | ||
595 | } | ||
596 | |||
597 | static void __exit alsa_tea575x_module_exit(void) | ||
598 | { | ||
599 | } | ||
600 | |||
601 | module_init(alsa_tea575x_module_init) | ||
602 | module_exit(alsa_tea575x_module_exit) | ||
603 | |||
604 | EXPORT_SYMBOL(snd_tea575x_init); | ||
605 | EXPORT_SYMBOL(snd_tea575x_exit); | 589 | EXPORT_SYMBOL(snd_tea575x_exit); |
606 | EXPORT_SYMBOL(snd_tea575x_set_freq); | ||