Commit 0ca01763 authored by Jaswinder Singh Rajput's avatar Jaswinder Singh Rajput Committed by Linus Torvalds

hpet: fix style problems

Fix the following style problems:

WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
WARNING: Use #include <linux/io.h> instead of <asm/io.h>
ERROR: code indent should use tabs where possible
ERROR: do not initialise statics to 0 or NULL
Signed-off-by: default avatarJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 96e9694d
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/compat.h> #include <linux/compat.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/uaccess.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/io.h>
#include <asm/current.h> #include <asm/current.h>
#include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/div64.h> #include <asm/div64.h>
...@@ -81,13 +81,13 @@ static cycle_t read_hpet(struct clocksource *cs) ...@@ -81,13 +81,13 @@ static cycle_t read_hpet(struct clocksource *cs)
} }
static struct clocksource clocksource_hpet = { static struct clocksource clocksource_hpet = {
.name = "hpet", .name = "hpet",
.rating = 250, .rating = 250,
.read = read_hpet, .read = read_hpet,
.mask = CLOCKSOURCE_MASK(64), .mask = CLOCKSOURCE_MASK(64),
.mult = 0, /* to be calculated */ .mult = 0, /* to be calculated */
.shift = 10, .shift = 10,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
}; };
static struct clocksource *hpet_clocksource; static struct clocksource *hpet_clocksource;
#endif #endif
...@@ -826,7 +826,7 @@ int hpet_alloc(struct hpet_data *hdp) ...@@ -826,7 +826,7 @@ int hpet_alloc(struct hpet_data *hdp)
struct hpets *hpetp; struct hpets *hpetp;
size_t siz; size_t siz;
struct hpet __iomem *hpet; struct hpet __iomem *hpet;
static struct hpets *last = NULL; static struct hpets *last;
unsigned long period; unsigned long period;
unsigned long long temp; unsigned long long temp;
u32 remainder; u32 remainder;
......
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