cyber2000fb.c (002c6ca75289a4ac4f6738213dd2d258704886e4) | cyber2000fb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/drivers/video/cyber2000fb.c 4 * 5 * Copyright (C) 1998-2002 Russell King 6 * 7 * MIPS and 50xx clock support 8 * Copyright (C) 2001 Bradley D. LaRonde <brad@ltc.com> --- 34 unchanged lines hidden (view full) --- 43#include <linux/delay.h> 44#include <linux/fb.h> 45#include <linux/pci.h> 46#include <linux/init.h> 47#include <linux/io.h> 48#include <linux/i2c.h> 49#include <linux/i2c-algo-bit.h> 50 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/drivers/video/cyber2000fb.c 4 * 5 * Copyright (C) 1998-2002 Russell King 6 * 7 * MIPS and 50xx clock support 8 * Copyright (C) 2001 Bradley D. LaRonde <brad@ltc.com> --- 34 unchanged lines hidden (view full) --- 43#include <linux/delay.h> 44#include <linux/fb.h> 45#include <linux/pci.h> 46#include <linux/init.h> 47#include <linux/io.h> 48#include <linux/i2c.h> 49#include <linux/i2c-algo-bit.h> 50 |
51 | |
52#ifdef __arm__ 53#include <asm/mach-types.h> 54#endif 55 56#include "cyber2000fb.h" 57 58struct cfb_info { 59 struct fb_info fb; --- 1811 unchanged lines hidden (view full) --- 1871 * Tony: "module_init" is now required 1872 */ 1873static int __init cyber2000fb_init(void) 1874{ 1875 int ret = -1, err; 1876 1877#ifndef MODULE 1878 char *option = NULL; | 51#ifdef __arm__ 52#include <asm/mach-types.h> 53#endif 54 55#include "cyber2000fb.h" 56 57struct cfb_info { 58 struct fb_info fb; --- 1811 unchanged lines hidden (view full) --- 1870 * Tony: "module_init" is now required 1871 */ 1872static int __init cyber2000fb_init(void) 1873{ 1874 int ret = -1, err; 1875 1876#ifndef MODULE 1877 char *option = NULL; |
1878#endif |
|
1879 | 1879 |
1880 if (fb_modesetting_disabled("CyberPro")) 1881 return -ENODEV; 1882 1883#ifndef MODULE |
|
1880 if (fb_get_options("cyber2000fb", &option)) 1881 return -ENODEV; 1882 cyber2000fb_setup(option); 1883#endif 1884 1885 err = pci_register_driver(&cyberpro_driver); 1886 if (!err) 1887 ret = 0; --- 14 unchanged lines hidden --- | 1884 if (fb_get_options("cyber2000fb", &option)) 1885 return -ENODEV; 1886 cyber2000fb_setup(option); 1887#endif 1888 1889 err = pci_register_driver(&cyberpro_driver); 1890 if (!err) 1891 ret = 0; --- 14 unchanged lines hidden --- |