Commit 60207213 authored by Corentin LABBE's avatar Corentin LABBE Committed by Herbert Xu

hwrng: amd - Fix style problem with blank line

Some blank line are unncessary, and one is missing after declaration.
This patch fix thoses style problems.
Signed-off-by: default avatarLABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1ac6b731
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/io.h> #include <asm/io.h>
#define PFX KBUILD_MODNAME ": " #define PFX KBUILD_MODNAME ": "
/* /*
* Data for PCI driver interface * Data for PCI driver interface
* *
...@@ -52,7 +50,6 @@ MODULE_DEVICE_TABLE(pci, pci_tbl); ...@@ -52,7 +50,6 @@ MODULE_DEVICE_TABLE(pci, pci_tbl);
static struct pci_dev *amd_pdev; static struct pci_dev *amd_pdev;
static int amd_rng_data_present(struct hwrng *rng, int wait) static int amd_rng_data_present(struct hwrng *rng, int wait)
{ {
u32 pmbase = (u32)rng->priv; u32 pmbase = (u32)rng->priv;
...@@ -100,7 +97,6 @@ static void amd_rng_cleanup(struct hwrng *rng) ...@@ -100,7 +97,6 @@ static void amd_rng_cleanup(struct hwrng *rng)
pci_write_config_byte(amd_pdev, 0x40, rnen); pci_write_config_byte(amd_pdev, 0x40, rnen);
} }
static struct hwrng amd_rng = { static struct hwrng amd_rng = {
.name = "amd", .name = "amd",
.init = amd_rng_init, .init = amd_rng_init,
...@@ -109,7 +105,6 @@ static struct hwrng amd_rng = { ...@@ -109,7 +105,6 @@ static struct hwrng amd_rng = {
.data_read = amd_rng_data_read, .data_read = amd_rng_data_read,
}; };
static int __init mod_init(void) static int __init mod_init(void)
{ {
int err = -ENODEV; int err = -ENODEV;
...@@ -157,6 +152,7 @@ static int __init mod_init(void) ...@@ -157,6 +152,7 @@ static int __init mod_init(void)
static void __exit mod_exit(void) static void __exit mod_exit(void)
{ {
u32 pmbase = (unsigned long)amd_rng.priv; u32 pmbase = (unsigned long)amd_rng.priv;
release_region(pmbase + 0xF0, 8); release_region(pmbase + 0xF0, 8);
hwrng_unregister(&amd_rng); hwrng_unregister(&amd_rng);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment