aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-atm
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-13 14:00:57 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-17 18:35:51 +0200
commitb510ab513e19a0ee4371aa23bb1a9f50aa2101e8 (patch)
treee12df8a820808a6ca2d1e95161935aad93cf7829 /package/kernel/lantiq/ltq-atm
parentc00b2df6c8e421ea7aa96f53178dc85db99f2305 (diff)
downloadupstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.tar.gz
upstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.tar.bz2
upstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.zip
kernel: drop outdated kernel version switches for local code
This drops kernel version switches for versions not supported by OpenWrt master at the moment. This only adjusts local code, but doesn't touch patches to existing external packages. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-atm')
-rw-r--r--package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c2
-rw-r--r--package/kernel/lantiq/ltq-atm/src/ltq_atm.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c b/package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c
index 8638b12b4e..85f27156b5 100644
--- a/package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c
+++ b/package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c
@@ -60,7 +60,6 @@
static inline void vr9_reset_ppe(struct platform_device *pdev)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
struct device *dev = &pdev->dev;
struct reset_control *dsp;
struct reset_control *dfe;
@@ -97,7 +96,6 @@ static inline void vr9_reset_ppe(struct platform_device *pdev)
udelay(1000);
*PP32_SRST |= 0x000303CF;
udelay(1000);
-#endif
}
static inline int vr9_pp32_download_code(int pp32, u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
diff --git a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
index 267a515df6..f5dbfaae2d 100644
--- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
+++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
@@ -1809,11 +1809,7 @@ static int ltq_atm_probe(struct platform_device *pdev)
}
/* register interrupt handler */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, 0, "atm_mailbox_isr", &g_atm_priv_data);
-#else
- ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, IRQF_DISABLED, "atm_mailbox_isr", &g_atm_priv_data);
-#endif
if ( ret ) {
if ( ret == -EBUSY ) {
pr_err("IRQ may be occupied by other driver, please reconfig to disable it.\n");