From patchwork Mon Oct 8 14:39:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10630893 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ACC3B174A for ; Mon, 8 Oct 2018 14:40:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99DBF2952C for ; Mon, 8 Oct 2018 14:40:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CF8829542; Mon, 8 Oct 2018 14:40:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_MUA_MOZILLA,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE1A22952C for ; Mon, 8 Oct 2018 14:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:Message-Id:MIME-Version:Date :Subject:From:To:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=TQ5Ntj+wK6eVV5p1BSaBfijEdADSLSgr1cB/44qNtUI=; b=GjO/2Jn3jaY3sS zFm1Ui6q82vqA2O5gDMdG/ehkfYX6t5wJ+FbXCZ22nJfL2NseElVpJGbw0ZWFZ13ohy6UNcLEO0jB 7sAnwPXC5OVfO31G1Frc+D1i1/mbA27Bypj+M02sBl2SiNZ82SzMv5W723lgn1/BV6XjR39/ASBjT sxMPip650KiBdptfwTyUIYQVz/x9Ahy0R7KZL7v6ijuqiTihQ16TB2h5WMGSnZDUpye22h5a7z928 fPqd36Hk6Tm6dldg5foFqTpJ71b3rNGJkQEF9DUVVjJuKMeKd1y6yEvcgGkwcCoBScpOkbUMrJY4V BBdg52y50bGnj992AQRA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9Whc-0006yD-2K; Mon, 08 Oct 2018 14:40:08 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9WhW-0006YU-Dv for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2018 14:40:05 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181008143947euoutp016d89870b64f5e0b9dbefe99acdf6f2b3~bqRDLlx1u1457114571euoutp014 for ; Mon, 8 Oct 2018 14:39:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181008143947euoutp016d89870b64f5e0b9dbefe99acdf6f2b3~bqRDLlx1u1457114571euoutp014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539009587; bh=2hXhJG9nR52KD384ib1IoKm1nUJipcNM/OvD9VOonFg=; h=To:Cc:From:Subject:Date:References:From; b=OogA4+NhPo1ipiXoWsaqZCyWKCwTeIo0+acDbAXynipcl66qaN1gycsnyA/hat1CX uUCkyUvbVYmY4bwTJwYuY+tpKLxUw8jihdr9IgqSjAfb+88pA/gJw+YPMKwCV7pqz2 fwlVN/5MSrpDpvTmrB3ieN1Bwjw8BWI1f8Y6xRzo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181008143946eucas1p2bf5474a6d386e530239b62b37f19d451~bqRC0JFab2389523895eucas1p2s; Mon, 8 Oct 2018 14:39:46 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 22.45.04441.23C6BBB5; Mon, 8 Oct 2018 15:39:46 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181008143946eucas1p1c0180243a556c88a3a2186ebc17737cb~bqRCEWq7m0204102041eucas1p1z; Mon, 8 Oct 2018 14:39:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181008143946eusmtrp250211e7a1d9a10361aaa0f3bb313e92d~bqRCDfveK1149411494eusmtrp2k; Mon, 8 Oct 2018 14:39:46 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-cc-5bbb6c32ddfd Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 96.4B.04128.13C6BBB5; Mon, 8 Oct 2018 15:39:45 +0100 (BST) Received: from [106.120.53.102] (unknown [106.120.53.102]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20181008143945eusmtip1328143a07412bb6292ec0bd079c4cf5e~bqRBtM_G62463924639eusmtip1R; Mon, 8 Oct 2018 14:39:45 +0000 (GMT) To: Alexander Shiyan From: Bartlomiej Zolnierkiewicz Subject: [PATCH] video: fbdev: remove dead old CLPS711x LCD support driver Date: Mon, 8 Oct 2018 16:39:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjleLIzCtJLcpLzFFi42LZduzneV2jnN3RBk8PqFhc+fqezWLT42us Fif6PrBaXN41h81i0g4pB1aP+93HmTw2L6n3mDL3CKvH501yASxRXDYpqTmZZalF+nYJXBkb D/oXfA6peNN5ir2B8aNzFyMnh4SAiUTz+vdsXYxcHEICKxglFr0+zgrhfGGU2P2nhR3C+cwo sWXWNSaYlsPNi5kgEssZJdY2zIJqec8osXTPRBaQKhEBdYlFD7ezgCSYBdoYJRbsuQHWziZg JTGxfRUjiC0s4CWxpfstWAOLgIrEgd8bgWwODlGBCIn+M+ogYV4BQYmTM5+AlTALyEtsfzuH GWSmhMB7NokDN9cwQRSVSbydso4Z4jwXif89b6FsYYlXx7ewQ9gyEv93zmeCaJ7OKPHm11IW CGc9o8SaM8egnrOWOHz8IivIFcwCmhLrd+lDhB0lWhe+AgtLCPBJ3HgrCHEQn8SkbdOZIcK8 Eh1tQhDVahIblm1gg1nbtXMl1DkeEs1XH7KC2EICsRJXPnxmncCoMAvJm7OQvDkL4YYFjMyr GMVTS4tz01OLDfNSy/WKE3OLS/PS9ZLzczcxAlPJ6X/HP+1g/Hop6RCjAAejEg/vyoBd0UKs iWXFlbmHGCU4mJVEeEW3A4V4UxIrq1KL8uOLSnNSiw8xSnOwKInzLpu3MVpIID2xJDU7NbUg tQgmy8TBKdXA2CTgqiB9Vyw30zYzJ0pvAeOfvls5NRxezFOmsZ5jMbo5/xZvq/CJpNmpyj9l 819wBBs55JzZtXdtlf6ek2eV4tUfpkUs43R+ryHG6+P3VWLbjDJ+w3N1Zsd/PTvxLda2xNv4 xKdnEus6nk3k2cR08oDP9BnGBh+8dm7aqqv8dm3EyRs3L9sbKLEUZyQaajEXFScCANVAQZAh AwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsVy+t/xu7qGObujDfb0Wltc+fqezWLT42us Fif6PrBaXN41h81i0g4pB1aP+93HmTw2L6n3mDL3CKvH501yASxRejZF+aUlqQoZ+cUltkrR hhZGeoaWFnpGJpZ6hsbmsVZGpkr6djYpqTmZZalF+nYJehkbD/oXfA6peNN5ir2B8aNzFyMn h4SAicTh5sVMXYxcHEICSxklVh+Yz97FyAGUkJE4vr4MokZY4s+1LjaImreMEjtutrODJEQE 1CUWPdzOApJgFmhjlJjU0AWWYBOwkpjYvooRxBYW8JLY0v2WBcTmFbCT+L/xBRuIzSKgInHg 90awuKhAhMSthx1QNYISJ2c+AbOZgRb8mXeJGcKWl9j+dg7zBEb+WUjKZiEpm4WkbAEj8ypG kdTS4tz03GIjveLE3OLSvHS95PzcTYzAgN927OeWHYxd74IPMQpwMCrx8K4I2BUtxJpYVlyZ e4hRgoNZSYRXdDtQiDclsbIqtSg/vqg0J7X4EKMp0OETmaVEk/OB0ZhXEm9oamhuYWlobmxu bGahJM573qAySkggPbEkNTs1tSC1CKaPiYNTqoHRcNmu5z4LTc5Uvth+fotozZaHU/VOr330 iOXRB0exCM+jvVbHdQ1rP6bvumv987910/M3pdZmKj+a6/+8lGNLSbk/eVusevUXrT8J2o4u olu/+NySWMfYfEIiV375FdU/Lzbdli5v5T72a/OLnI3/GZ8sYAgxqWR/4MX/Zg+v9uK4pP7U Oqs8JZbijERDLeai4kQAtkWYu44CAAA= Message-Id: <20181008143946eucas1p1c0180243a556c88a3a2186ebc17737cb~bqRCEWq7m0204102041eucas1p1z@eucas1p1.samsung.com> X-CMS-MailID: 20181008143946eucas1p1c0180243a556c88a3a2186ebc17737cb X-Msg-Generator: CA X-RootMTR: 20181008143946eucas1p1c0180243a556c88a3a2186ebc17737cb X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181008143946eucas1p1c0180243a556c88a3a2186ebc17737cb References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181008_074002_942752_1B56A623 X-CRM114-Status: GOOD ( 24.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit c86f51737f8d ("ARM: clps711x: Switch to MULTIPLATFORM") ARCH_CLPS711X depends on ARCH_MULTIPLATFORM to be enabled so the old CLPS711x LCD support driver (enabled by the FB_CLPS711X_OLD config option) can't be selected any longer. Remove all FB_CLPS711XX_OLD code as it has been dead for over 2 years now. Please note that the new CLPS711x LCD support driver (enabled by the FB_CLPS711X config option) is still available in the kernel tree. Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Alexander Shiyan --- drivers/video/fbdev/Kconfig | 7 drivers/video/fbdev/Makefile | 1 drivers/video/fbdev/clps711xfb.c | 314 --------------------------------------- 3 files changed, 322 deletions(-) Index: b/drivers/video/fbdev/Kconfig =================================================================== --- a/drivers/video/fbdev/Kconfig 2018-10-08 12:57:36.743642088 +0200 +++ b/drivers/video/fbdev/Kconfig 2018-10-08 16:05:55.075926618 +0200 @@ -8,12 +8,6 @@ config FB_CMDLINE config FB_NOTIFY bool -config FB_CLPS711X_OLD - tristate - select FB_CFB_FILLRECT - select FB_CFB_COPYAREA - select FB_CFB_IMAGEBLIT - menuconfig FB tristate "Support for frame buffer devices" select FB_CMDLINE @@ -338,7 +332,6 @@ config FB_ACORN config FB_CLPS711X tristate "CLPS711X LCD support" depends on FB && (ARCH_CLPS711X || COMPILE_TEST) - select FB_CLPS711X_OLD if ARCH_CLPS711X && !ARCH_MULTIPLATFORM select BACKLIGHT_LCD_SUPPORT select FB_MODE_HELPERS select FB_SYS_FILLRECT Index: b/drivers/video/fbdev/Makefile =================================================================== --- a/drivers/video/fbdev/Makefile 2018-09-03 18:11:52.693791712 +0200 +++ b/drivers/video/fbdev/Makefile 2018-10-08 16:05:33.391926072 +0200 @@ -14,7 +14,6 @@ obj-$(CONFIG_FB_WMT_GE_ROPS) += wmt_ge obj-$(CONFIG_FB_AMIGA) += amifb.o c2p_planar.o obj-$(CONFIG_FB_ARC) += arcfb.o obj-$(CONFIG_FB_CLPS711X) += clps711x-fb.o -obj-$(CONFIG_FB_CLPS711X_OLD) += clps711xfb.o obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o obj-$(CONFIG_FB_GRVGA) += grvga.o obj-$(CONFIG_FB_PM2) += pm2fb.o Index: b/drivers/video/fbdev/clps711xfb.c =================================================================== --- a/drivers/video/fbdev/clps711xfb.c 2018-09-03 18:11:52.705791712 +0200 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,314 +0,0 @@ -/* - * linux/drivers/video/clps711xfb.c - * - * Copyright (C) 2000-2001 Deep Blue Solutions Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Framebuffer driver for the CLPS7111 and EP7212 processors. - */ -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -struct fb_info *cfb; - -#define CMAP_MAX_SIZE 16 - -/* - * LCD AC Prescale. This comes from the LCD panel manufacturers specifications. - * This determines how many clocks + 1 of CL1 before the M signal toggles. - * The number of lines on the display must not be divisible by this number. - */ -static unsigned int lcd_ac_prescale = 13; - -/* - * Set a single color register. Return != 0 for invalid regno. - */ -static int -clps7111fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, - u_int transp, struct fb_info *info) -{ - unsigned int level, mask, shift, pal; - - if (regno >= (1 << info->var.bits_per_pixel)) - return 1; - - /* gray = 0.30*R + 0.58*G + 0.11*B */ - level = (red * 77 + green * 151 + blue * 28) >> 20; - - /* - * On an LCD, a high value is dark, while a low value is light. - * So we invert the level. - * - * This isn't true on all machines, so we only do it on EDB7211. - * --rmk - */ - if (machine_is_edb7211()) { - level = 15 - level; - } - - shift = 4 * (regno & 7); - level <<= shift; - mask = 15 << shift; - level &= mask; - - regno = regno < 8 ? PALLSW : PALMSW; - - pal = clps_readl(regno); - pal = (pal & ~mask) | level; - clps_writel(pal, regno); - - return 0; -} - -/* - * Validate the purposed mode. - */ -static int -clps7111fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) -{ - var->transp.msb_right = 0; - var->transp.offset = 0; - var->transp.length = 0; - var->red.msb_right = 0; - var->red.offset = 0; - var->red.length = var->bits_per_pixel; - var->green = var->red; - var->blue = var->red; - - if (var->bits_per_pixel > 4) - return -EINVAL; - - return 0; -} - -/* - * Set the hardware state. - */ -static int -clps7111fb_set_par(struct fb_info *info) -{ - unsigned int lcdcon, syscon, pixclock; - - switch (info->var.bits_per_pixel) { - case 1: - info->fix.visual = FB_VISUAL_MONO01; - break; - case 2: - info->fix.visual = FB_VISUAL_PSEUDOCOLOR; - break; - case 4: - info->fix.visual = FB_VISUAL_PSEUDOCOLOR; - break; - } - - info->fix.line_length = info->var.xres_virtual * info->var.bits_per_pixel / 8; - - lcdcon = (info->var.xres_virtual * info->var.yres_virtual * info->var.bits_per_pixel) / 128 - 1; - lcdcon |= ((info->var.xres_virtual / 16) - 1) << 13; - lcdcon |= lcd_ac_prescale << 25; - - /* - * Calculate pixel prescale value from the pixclock. This is: - * 36.864MHz / pixclock_mhz - 1. - * However, pixclock is in picoseconds, so this ends up being: - * 36864000 * pixclock_ps / 10^12 - 1 - * and this will overflow the 32-bit math. We perform this as - * (9 * 4096000 == 36864000): - * pixclock_ps * 9 * (4096000 / 10^12) - 1 - */ - pixclock = 9 * info->var.pixclock / 244140 - 1; - lcdcon |= pixclock << 19; - - if (info->var.bits_per_pixel == 4) - lcdcon |= LCDCON_GSMD; - if (info->var.bits_per_pixel >= 2) - lcdcon |= LCDCON_GSEN; - - /* - * LCDCON must only be changed while the LCD is disabled - */ - syscon = clps_readl(SYSCON1); - clps_writel(syscon & ~SYSCON1_LCDEN, SYSCON1); - clps_writel(lcdcon, LCDCON); - clps_writel(syscon | SYSCON1_LCDEN, SYSCON1); - return 0; -} - -static int clps7111fb_blank(int blank, struct fb_info *info) -{ - /* Enable/Disable LCD controller. */ - if (blank) - clps_writel(clps_readl(SYSCON1) & ~SYSCON1_LCDEN, SYSCON1); - else - clps_writel(clps_readl(SYSCON1) | SYSCON1_LCDEN, SYSCON1); - - return 0; -} - -static struct fb_ops clps7111fb_ops = { - .owner = THIS_MODULE, - .fb_check_var = clps7111fb_check_var, - .fb_set_par = clps7111fb_set_par, - .fb_setcolreg = clps7111fb_setcolreg, - .fb_blank = clps7111fb_blank, - .fb_fillrect = cfb_fillrect, - .fb_copyarea = cfb_copyarea, - .fb_imageblit = cfb_imageblit, -}; - -static void clps711x_guess_lcd_params(struct fb_info *info) -{ - unsigned int lcdcon, syscon, size; - unsigned long phys_base = PAGE_OFFSET; - void *virt_base = (void *)PAGE_OFFSET; - - info->var.xres_virtual = 640; - info->var.yres_virtual = 240; - info->var.bits_per_pixel = 4; - info->var.activate = FB_ACTIVATE_NOW; - info->var.height = -1; - info->var.width = -1; - info->var.pixclock = 93006; /* 10.752MHz pixel clock */ - - /* - * If the LCD controller is already running, decode the values - * in LCDCON to xres/yres/bpp/pixclock/acprescale - */ - syscon = clps_readl(SYSCON1); - if (syscon & SYSCON1_LCDEN) { - lcdcon = clps_readl(LCDCON); - - /* - * Decode GSMD and GSEN bits to bits per pixel - */ - switch (lcdcon & (LCDCON_GSMD | LCDCON_GSEN)) { - case LCDCON_GSMD | LCDCON_GSEN: - info->var.bits_per_pixel = 4; - break; - - case LCDCON_GSEN: - info->var.bits_per_pixel = 2; - break; - - default: - info->var.bits_per_pixel = 1; - break; - } - - /* - * Decode xres/yres - */ - info->var.xres_virtual = (((lcdcon >> 13) & 0x3f) + 1) * 16; - info->var.yres_virtual = (((lcdcon & 0x1fff) + 1) * 128) / - (info->var.xres_virtual * - info->var.bits_per_pixel); - - /* - * Calculate pixclock - */ - info->var.pixclock = (((lcdcon >> 19) & 0x3f) + 1) * 244140 / 9; - - /* - * Grab AC prescale - */ - lcd_ac_prescale = (lcdcon >> 25) & 0x1f; - } - - info->var.xres = info->var.xres_virtual; - info->var.yres = info->var.yres_virtual; - info->var.grayscale = info->var.bits_per_pixel > 1; - - size = info->var.xres * info->var.yres * info->var.bits_per_pixel / 8; - - /* - * Might be worth checking to see if we can use the on-board - * RAM if size here... - * CLPS7110 - no on-board SRAM - * EP7212 - 38400 bytes - */ - if (size <= 38400) { - printk(KERN_INFO "CLPS711xFB: could use on-board SRAM?\n"); - } - - if ((syscon & SYSCON1_LCDEN) == 0) { - /* - * The display isn't running. Ensure that - * the display memory is empty. - */ - memset(virt_base, 0, size); - } - - info->screen_base = virt_base; - info->fix.smem_start = phys_base; - info->fix.smem_len = PAGE_ALIGN(size); - info->fix.type = FB_TYPE_PACKED_PIXELS; -} - -static int clps711x_fb_probe(struct platform_device *pdev) -{ - int err = -ENOMEM; - - if (fb_get_options("clps711xfb", NULL)) - return -ENODEV; - - cfb = kzalloc(sizeof(*cfb), GFP_KERNEL); - if (!cfb) - goto out; - - strcpy(cfb->fix.id, "clps711x"); - - cfb->fbops = &clps7111fb_ops; - cfb->flags = FBINFO_DEFAULT; - - clps711x_guess_lcd_params(cfb); - - fb_alloc_cmap(&cfb->cmap, CMAP_MAX_SIZE, 0); - - err = register_framebuffer(cfb); - -out: return err; -} - -static int clps711x_fb_remove(struct platform_device *pdev) -{ - unregister_framebuffer(cfb); - kfree(cfb); - - return 0; -} - -static struct platform_driver clps711x_fb_driver = { - .driver = { - .name = "video-clps711x", - }, - .probe = clps711x_fb_probe, - .remove = clps711x_fb_remove, -}; -module_platform_driver(clps711x_fb_driver); - -MODULE_AUTHOR("Russell King "); -MODULE_DESCRIPTION("CLPS711X framebuffer driver"); -MODULE_LICENSE("GPL");