q40fb.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) q40fb.c (6a7d270e901965b0f8643db885cdc2e6e93b8621)
1/*
2 * linux/drivers/video/q40fb.c -- Q40 frame buffer device
3 *
4 * Copyright (C) 2001
5 *
6 * Richard Zidlicky <rz@linux-m68k.org>
7 *
8 * This file is subject to the terms and conditions of the GNU General Public

--- 119 unchanged lines hidden (view full) ---

128 .name = "q40fb",
129 },
130};
131
132static struct platform_device q40fb_device = {
133 .name = "q40fb",
134};
135
1/*
2 * linux/drivers/video/q40fb.c -- Q40 frame buffer device
3 *
4 * Copyright (C) 2001
5 *
6 * Richard Zidlicky <rz@linux-m68k.org>
7 *
8 * This file is subject to the terms and conditions of the GNU General Public

--- 119 unchanged lines hidden (view full) ---

128 .name = "q40fb",
129 },
130};
131
132static struct platform_device q40fb_device = {
133 .name = "q40fb",
134};
135
136int __init q40fb_init(void)
136static int __init q40fb_init(void)
137{
138 int ret = 0;
139
140 if (fb_get_options("q40fb", NULL))
141 return -ENODEV;
142
143 ret = platform_driver_register(&q40fb_driver);
144
145 if (!ret) {
146 ret = platform_device_register(&q40fb_device);
147 if (ret)
148 platform_driver_unregister(&q40fb_driver);
149 }
150 return ret;
151}
152
153module_init(q40fb_init);
154MODULE_LICENSE("GPL");
137{
138 int ret = 0;
139
140 if (fb_get_options("q40fb", NULL))
141 return -ENODEV;
142
143 ret = platform_driver_register(&q40fb_driver);
144
145 if (!ret) {
146 ret = platform_device_register(&q40fb_device);
147 if (ret)
148 platform_driver_unregister(&q40fb_driver);
149 }
150 return ret;
151}
152
153module_init(q40fb_init);
154MODULE_LICENSE("GPL");