|
@@ -199,7 +199,7 @@ static int intel_rng_init(struct hwrng *rng)
|
|
if ((hw_status & INTEL_RNG_ENABLED) == 0)
|
|
if ((hw_status & INTEL_RNG_ENABLED) == 0)
|
|
hw_status = hwstatus_set(mem, hw_status | INTEL_RNG_ENABLED);
|
|
hw_status = hwstatus_set(mem, hw_status | INTEL_RNG_ENABLED);
|
|
if ((hw_status & INTEL_RNG_ENABLED) == 0) {
|
|
if ((hw_status & INTEL_RNG_ENABLED) == 0) {
|
|
- printk(KERN_ERR PFX "cannot enable RNG, aborting\n");
|
|
|
|
|
|
+ pr_err(PFX "cannot enable RNG, aborting\n");
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
err = 0;
|
|
err = 0;
|
|
@@ -216,7 +216,7 @@ static void intel_rng_cleanup(struct hwrng *rng)
|
|
if (hw_status & INTEL_RNG_ENABLED)
|
|
if (hw_status & INTEL_RNG_ENABLED)
|
|
hwstatus_set(mem, hw_status & ~INTEL_RNG_ENABLED);
|
|
hwstatus_set(mem, hw_status & ~INTEL_RNG_ENABLED);
|
|
else
|
|
else
|
|
- printk(KERN_WARNING PFX "unusual: RNG already disabled\n");
|
|
|
|
|
|
+ pr_warn(PFX "unusual: RNG already disabled\n");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -274,7 +274,7 @@ static int __init intel_rng_hw_init(void *_intel_rng_hw)
|
|
if (mfc != INTEL_FWH_MANUFACTURER_CODE ||
|
|
if (mfc != INTEL_FWH_MANUFACTURER_CODE ||
|
|
(dvc != INTEL_FWH_DEVICE_CODE_8M &&
|
|
(dvc != INTEL_FWH_DEVICE_CODE_8M &&
|
|
dvc != INTEL_FWH_DEVICE_CODE_4M)) {
|
|
dvc != INTEL_FWH_DEVICE_CODE_4M)) {
|
|
- printk(KERN_NOTICE PFX "FWH not detected\n");
|
|
|
|
|
|
+ pr_notice(PFX "FWH not detected\n");
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -306,7 +306,6 @@ static int __init intel_init_hw_struct(struct intel_rng_hw *intel_rng_hw,
|
|
(BIOS_CNTL_LOCK_ENABLE_MASK|BIOS_CNTL_WRITE_ENABLE_MASK))
|
|
(BIOS_CNTL_LOCK_ENABLE_MASK|BIOS_CNTL_WRITE_ENABLE_MASK))
|
|
== BIOS_CNTL_LOCK_ENABLE_MASK) {
|
|
== BIOS_CNTL_LOCK_ENABLE_MASK) {
|
|
static __initdata /*const*/ char warning[] =
|
|
static __initdata /*const*/ char warning[] =
|
|
- KERN_WARNING
|
|
|
|
PFX "Firmware space is locked read-only. If you can't or\n"
|
|
PFX "Firmware space is locked read-only. If you can't or\n"
|
|
PFX "don't want to disable this in firmware setup, and if\n"
|
|
PFX "don't want to disable this in firmware setup, and if\n"
|
|
PFX "you are certain that your system has a functional\n"
|
|
PFX "you are certain that your system has a functional\n"
|
|
@@ -314,7 +313,7 @@ PFX "RNG, try using the 'no_fwh_detect' option.\n";
|
|
|
|
|
|
if (no_fwh_detect)
|
|
if (no_fwh_detect)
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
- printk(warning);
|
|
|
|
|
|
+ pr_warn("%s", warning);
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -392,10 +391,10 @@ fwh_done:
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- printk(KERN_INFO "Intel 82802 RNG detected\n");
|
|
|
|
|
|
+ pr_info("Intel 82802 RNG detected\n");
|
|
err = hwrng_register(&intel_rng);
|
|
err = hwrng_register(&intel_rng);
|
|
if (err) {
|
|
if (err) {
|
|
- printk(KERN_ERR PFX "RNG registering failed (%d)\n",
|
|
|
|
|
|
+ pr_err(PFX "RNG registering failed (%d)\n",
|
|
err);
|
|
err);
|
|
iounmap(mem);
|
|
iounmap(mem);
|
|
}
|
|
}
|