static int cuda_init(void) { if (via == NULL) return -ENODEV; #ifndef CONFIG_PPC return via_cuda_start(); #endif return 0; }
static int __init cuda_init(void) { #ifdef CONFIG_PPC if (via == NULL) return -ENODEV; return 0; #else int err = cuda_init_via(); if (err) { printk(KERN_ERR "cuda_init_via() failed\n"); return -ENODEV; } return via_cuda_start(); #endif }
static int __init cuda_init(void) { #ifdef CONFIG_PPC if (via == NULL) return -ENODEV; return 0; #else int err = cuda_init_via(); if (err) { printk(KERN_ERR "cuda_init_via() failed\n"); return -ENODEV; } out_8(&via[IER], IER_SET|SR_INT); /* enable interrupt from SR */ return via_cuda_start(); #endif }