4 #include <linux/vmalloc.h>
5 #include <linux/file.h>
6 #include <linux/firmware.h>
7 +#include <linux/version.h>
10 #include <asm/ar7/ar7.h>
11 @@ -492,7 +493,9 @@ static void avsar_release(struct device
14 static struct device avsar = {
15 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
18 .release = avsar_release,
21 @@ -501,6 +504,9 @@ int shim_osLoadFWImage(unsigned char *pt
22 const struct firmware *fw_entry;
25 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
26 + dev_set_name(&avsar, "avsar");
28 printk("requesting firmware image \"ar0700xx.bin\"\n");
29 if(device_register(&avsar) < 0) {