File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -486,16 +486,6 @@ static struct attribute *rng_dev_attrs[] = {
486
486
487
487
ATTRIBUTE_GROUPS (rng_dev );
488
488
489
- static void __exit unregister_miscdev (void )
490
- {
491
- misc_deregister (& rng_miscdev );
492
- }
493
-
494
- static int __init register_miscdev (void )
495
- {
496
- return misc_register (& rng_miscdev );
497
- }
498
-
499
489
static int hwrng_fillfn (void * unused )
500
490
{
501
491
size_t entropy , entropy_credit = 0 ; /* in 1/1024 of a bit */
@@ -709,7 +699,7 @@ static int __init hwrng_modinit(void)
709
699
return - ENOMEM ;
710
700
}
711
701
712
- ret = register_miscdev ( );
702
+ ret = misc_register ( & rng_miscdev );
713
703
if (ret ) {
714
704
kfree (rng_fillbuf );
715
705
kfree (rng_buffer );
@@ -726,7 +716,7 @@ static void __exit hwrng_modexit(void)
726
716
kfree (rng_fillbuf );
727
717
mutex_unlock (& rng_mutex );
728
718
729
- unregister_miscdev ( );
719
+ misc_deregister ( & rng_miscdev );
730
720
}
731
721
732
722
fs_initcall (hwrng_modinit ); /* depends on misc_register() */
You can’t perform that action at this time.
0 commit comments