projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ae4858
)
ar7: remove unneeded packed and array initialization
author
Matteo Croce
<rootkit85@yahoo.it>
Mon, 7 Apr 2008 01:30:07 +0000
(
01:30
+0000)
committer
Matteo Croce
<rootkit85@yahoo.it>
Mon, 7 Apr 2008 01:30:07 +0000
(
01:30
+0000)
SVN-Revision: 10752
target/linux/ar7/files/arch/mips/ar7/clock.c
patch
|
blob
|
history
target/linux/ar7/files/arch/mips/ar7/gpio.c
patch
|
blob
|
history
target/linux/ar7/files/drivers/vlynq/vlynq.c
patch
|
blob
|
history
diff --git
a/target/linux/ar7/files/arch/mips/ar7/clock.c
b/target/linux/ar7/files/arch/mips/ar7/clock.c
index 5a1c4fea141d8b88e176f34a544cbe609686fd48..0f7e2d7eeb33fc3b6bca365fe5b2bea6984afc7a 100644
(file)
--- a/
target/linux/ar7/files/arch/mips/ar7/clock.c
+++ b/
target/linux/ar7/files/arch/mips/ar7/clock.c
@@
-61,14
+61,14
@@
struct tnetd7300_clock {
#define PLL_DIV 0x00000002
#define PLL_STATUS 0x00000001
u32 unused2[3];
#define PLL_DIV 0x00000002
#define PLL_STATUS 0x00000001
u32 unused2[3];
-}
__packed
;
+};
struct tnetd7300_clocks {
struct tnetd7300_clock bus;
struct tnetd7300_clock cpu;
struct tnetd7300_clock usb;
struct tnetd7300_clock dsp;
struct tnetd7300_clocks {
struct tnetd7300_clock bus;
struct tnetd7300_clock cpu;
struct tnetd7300_clock usb;
struct tnetd7300_clock dsp;
-}
__packed
;
+};
struct tnetd7200_clock {
volatile u32 ctrl;
struct tnetd7200_clock {
volatile u32 ctrl;
@@
-83,13
+83,13
@@
struct tnetd7200_clock {
volatile u32 status;
volatile u32 cmden;
u32 padding[15];
volatile u32 status;
volatile u32 cmden;
u32 padding[15];
-}
__packed
;
+};
struct tnetd7200_clocks {
struct tnetd7200_clock cpu;
struct tnetd7200_clock dsp;
struct tnetd7200_clock usb;
struct tnetd7200_clocks {
struct tnetd7200_clock cpu;
struct tnetd7200_clock dsp;
struct tnetd7200_clock usb;
-}
__packed
;
+};
int ar7_cpu_clock = 150000000;
EXPORT_SYMBOL(ar7_cpu_clock);
int ar7_cpu_clock = 150000000;
EXPORT_SYMBOL(ar7_cpu_clock);
diff --git
a/target/linux/ar7/files/arch/mips/ar7/gpio.c
b/target/linux/ar7/files/arch/mips/ar7/gpio.c
index a04981a6c02927b3a6eb1aee9355791f89ace6b2..207d270934f362702b6e67fade9061ce5902d451 100644
(file)
--- a/
target/linux/ar7/files/arch/mips/ar7/gpio.c
+++ b/
target/linux/ar7/files/arch/mips/ar7/gpio.c
@@
-21,7
+21,7
@@
#include <asm/ar7/gpio.h>
#include <asm/ar7/gpio.h>
-static const char *ar7_gpio_list[AR7_GPIO_MAX]
= { 0, }
;
+static const char *ar7_gpio_list[AR7_GPIO_MAX];
int gpio_request(unsigned gpio, const char *label)
{
int gpio_request(unsigned gpio, const char *label)
{
diff --git
a/target/linux/ar7/files/drivers/vlynq/vlynq.c
b/target/linux/ar7/files/drivers/vlynq/vlynq.c
index 879ed0d14c71d09da2a4276b39e2cc42c1715f7a..3358bb711a231df646c18cdaf6d98704fe826809 100644
(file)
--- a/
target/linux/ar7/files/drivers/vlynq/vlynq.c
+++ b/
target/linux/ar7/files/drivers/vlynq/vlynq.c
@@
-68,7
+68,7
@@
struct vlynq_regs {
u32 autonego;
u32 unused[6];
u32 int_device[8];
u32 autonego;
u32 unused[6];
u32 int_device[8];
-}
__attribute__ ((packed))
;
+};
#define vlynq_reg_read(reg) readl(&(reg))
#define vlynq_reg_write(reg, val) writel(val, &(reg))
#define vlynq_reg_read(reg) readl(&(reg))
#define vlynq_reg_write(reg, val) writel(val, &(reg))