openwrt/package/kernel/ar7-atm/patches-D7.05.01.00/170-bus_id_removal.patch
Jonas Gorski 889b21f954 ar7-atm: drop LINUX_VERSION tests
Minimum supported kernel is 3.18, so we don't need to test for anything
older. In addition, the API hasn't changed since then, so we don't need
to check for any kernel version at all.  This helps to keeps the amount
of changes more managable.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2017-10-29 23:41:00 +01:00

20 lines
448 B
Diff

--- a/tn7dsl.c
+++ b/tn7dsl.c
@@ -492,7 +492,6 @@ static void avsar_release(struct device
}
static struct device avsar = {
- .bus_id = "vlynq",
.release = avsar_release,
};
@@ -501,6 +500,8 @@ int shim_osLoadFWImage(unsigned char *pt
const struct firmware *fw_entry;
size_t size;
+ dev_set_name(&avsar, "avsar");
+
printk("requesting firmware image \"ar0700xx.bin\"\n");
if(device_register(&avsar) < 0) {
printk(KERN_ERR