aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
index 0118b9817a95..84cdf9025737 100644
--- a/drivers/char/hw_random/core.c
+++ b/drivers/char/hw_random/core.c
@@ -234,11 +234,11 @@ static DEVICE_ATTR(rng_available, S_IRUGO,
234 NULL); 234 NULL);
235 235
236 236
237static void unregister_miscdev(void) 237static void unregister_miscdev(bool suspended)
238{ 238{
239 device_remove_file(rng_miscdev.this_device, &dev_attr_rng_available); 239 device_remove_file(rng_miscdev.this_device, &dev_attr_rng_available);
240 device_remove_file(rng_miscdev.this_device, &dev_attr_rng_current); 240 device_remove_file(rng_miscdev.this_device, &dev_attr_rng_current);
241 misc_deregister(&rng_miscdev); 241 __misc_deregister(&rng_miscdev, suspended);
242} 242}
243 243
244static int register_miscdev(void) 244static int register_miscdev(void)
@@ -313,7 +313,7 @@ out:
313} 313}
314EXPORT_SYMBOL_GPL(hwrng_register); 314EXPORT_SYMBOL_GPL(hwrng_register);
315 315
316void hwrng_unregister(struct hwrng *rng) 316void __hwrng_unregister(struct hwrng *rng, bool suspended)
317{ 317{
318 int err; 318 int err;
319 319
@@ -332,11 +332,11 @@ void hwrng_unregister(struct hwrng *rng)
332 } 332 }
333 } 333 }
334 if (list_empty(&rng_list)) 334 if (list_empty(&rng_list))
335 unregister_miscdev(); 335 unregister_miscdev(suspended);
336 336
337 mutex_unlock(&rng_mutex); 337 mutex_unlock(&rng_mutex);
338} 338}
339EXPORT_SYMBOL_GPL(hwrng_unregister); 339EXPORT_SYMBOL_GPL(__hwrng_unregister);
340 340
341 341
342MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver"); 342MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver");