Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Andy Shevchenko and committed by
Mauro Carvalho Chehab
0e2a706b 8ddc2dd0

+2 -19
+2 -19
drivers/media/radio/tea575x.c
··· 14 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 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 19 #include <linux/delay.h> ··· 222 226 snd_tea575x_write(tea, tea->val); 223 227 tea->freq = snd_tea575x_val_to_freq(tea, tea->val); 224 228 } 229 + EXPORT_SYMBOL(snd_tea575x_set_freq); 225 230 226 231 /* 227 232 * Linux Video interface ··· 579 582 580 583 return 0; 581 584 } 585 + EXPORT_SYMBOL(snd_tea575x_init); 582 586 583 587 void snd_tea575x_exit(struct snd_tea575x *tea) 584 588 { 585 589 video_unregister_device(&tea->vd); 586 590 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); 587 591 } 588 - 589 - static int __init alsa_tea575x_module_init(void) 590 - { 591 - return 0; 592 - } 593 - 594 - static void __exit alsa_tea575x_module_exit(void) 595 - { 596 - } 597 - 598 - module_init(alsa_tea575x_module_init) 599 - module_exit(alsa_tea575x_module_exit) 600 - 601 - EXPORT_SYMBOL(snd_tea575x_init); 602 592 EXPORT_SYMBOL(snd_tea575x_exit); 603 - EXPORT_SYMBOL(snd_tea575x_set_freq);