summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wct4xxp.c2
-rw-r--r--wctdm24xxp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 2ee6552..750a293 100644
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -1483,6 +1483,8 @@ static int t4_startup(struct zt_span *span)
if (!alreadyrunning && !wc->vpm) {
wait_a_little();
t4_vpm_init(wc);
+ wc->dmactrl |= wc->vpm;
+ t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);
}
#endif
printk("Completed startup!\n");
diff --git a/wctdm24xxp.c b/wctdm24xxp.c
index dae289e..1c4786e 100644
--- a/wctdm24xxp.c
+++ b/wctdm24xxp.c
@@ -2462,7 +2462,7 @@ static void wctdm_vpm_init(struct wctdm *wc)
unsigned char reg;
unsigned int mask;
unsigned int ver;
- unsigned char vpmver;
+ unsigned char vpmver=0;
unsigned int i, x, y;
if (!vpmsupport) {