mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:39:41 +02:00
ar7: remove unneeded packed and array initialization
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10752 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f66ab6474e
commit
d600b610a6
@ -61,14 +61,14 @@ struct tnetd7300_clock {
|
||||
#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;
|
||||
} __packed;
|
||||
};
|
||||
|
||||
struct tnetd7200_clock {
|
||||
volatile u32 ctrl;
|
||||
@ -83,13 +83,13 @@ struct tnetd7200_clock {
|
||||
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;
|
||||
} __packed;
|
||||
};
|
||||
|
||||
int ar7_cpu_clock = 150000000;
|
||||
EXPORT_SYMBOL(ar7_cpu_clock);
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#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)
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ struct vlynq_regs {
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user