aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/fs3270.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-06 13:10:48 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-07 05:58:03 -0400
commit63df41d663fc27e96571bfea86d3f9ee81289e07 (patch)
treea6d460af08dcbaf9e4e3e8d0e46678f10f836024 /drivers/s390/char/fs3270.c
parent5b512beb0f18024e32e228976e3690d349b05b6a (diff)
s390: make various functions static, add declarations to header files
Make various functions static, add declarations to header files to fix a couple of sparse findings. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/fs3270.c')
-rw-r--r--drivers/s390/char/fs3270.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c
index 96e52bf75930..f93cc32eb818 100644
--- a/drivers/s390/char/fs3270.c
+++ b/drivers/s390/char/fs3270.c
@@ -524,20 +524,20 @@ static const struct file_operations fs3270_fops = {
524 .llseek = no_llseek, 524 .llseek = no_llseek,
525}; 525};
526 526
527void fs3270_create_cb(int minor) 527static void fs3270_create_cb(int minor)
528{ 528{
529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops); 529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops);
530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), 530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor),
531 NULL, "3270/tub%d", minor); 531 NULL, "3270/tub%d", minor);
532} 532}
533 533
534void fs3270_destroy_cb(int minor) 534static void fs3270_destroy_cb(int minor)
535{ 535{
536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); 536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor));
537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub"); 537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub");
538} 538}
539 539
540struct raw3270_notifier fs3270_notifier = 540static struct raw3270_notifier fs3270_notifier =
541{ 541{
542 .create = fs3270_create_cb, 542 .create = fs3270_create_cb,
543 .destroy = fs3270_destroy_cb, 543 .destroy = fs3270_destroy_cb,