From nobody Sun May 24 18:44:40 2026 Received: from forward103d.mail.yandex.net (forward103d.mail.yandex.net [178.154.239.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C11E427B34E; Sat, 23 May 2026 15:35:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.214 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550511; cv=none; b=fIdT2RnBtwix1EdZQECbSSn4hdo5GMEq+7KOsmkYLqmfyxZA7jmkNvlfPXdNnFxK8IAEyWi14kj7ANqa3CEj0rZdkahbyIuo/baXd0Qnao1t1DusJ+NcUeAFhT8/Sn9JRHX2p8IaNaEkLmjdRJvGWtzR6qeXux6xVVUoKKmk4Tw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550511; c=relaxed/simple; bh=YiM3B7nohSUCSAKRM0OX8VymyOaplIsA9wxEbdk9eOA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lgm/89Mz32F9Q0vO8/gI4BToIx0CU10Gw+sJMmLuo7jHlqJxzY2+bbYdN0rBY786iOR/lHgWisgx0wge0lagYocay3zI/RCR/Usvtcaj5zkwdO5daRLM9tbrrllsOfG1p+q5dTgQsdyrHGuW1AZ0ThHvePSudkYReWrDZVH8r/o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=EuXZ+bIO; arc=none smtp.client-ip=178.154.239.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="EuXZ+bIO" Received: from mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:eaca:0:640:4fc0:0]) by forward103d.mail.yandex.net (Yandex) with ESMTPS id 63293C0076; Sat, 23 May 2026 18:35:06 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (smtp) with ESMTPSA id 1ZXKP9PgKKo0-C94JiP7C; Sat, 23 May 2026 18:35:05 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1779550506; bh=3BDigBGEVC4JTzCnNadCuw8zrWzIKxOvt9uPnvBcMSk=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=EuXZ+bIO0YRGuBQSjO63NFrZatud/yXeDu0eS0El4PudTV5eLLZjb9AAPiGvwJoWK qcTrdLZlYTn6pjhdjamea9A5r0Ax8coH7q1BF+81IlUNOoLECXSxKTtoPCJ85h/4zf WDVuP7bt2BKdZA60K6BHqfRJvj2VyfZQ9NvAXC/M= Authentication-Results: mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: error27@gmail.com, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH v2 1/4] staging: sm750fb: remove commented-out forward declarations Date: Sat, 23 May 2026 15:34:56 +0000 Message-ID: <20260523153459.177488-2-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260523153459.177488-1-ahmet@sezginduran.net> References: <20260523153459.177488-1-ahmet@sezginduran.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The block at the top of sm750.c declares lynxfb_ops_write() and lynxfb_ops_read() inside a commented-out #ifdef __BIG_ENDIAN guard. Neither function is defined anywhere in the driver, so the block is dead. Remove it. Signed-off-by: Ahmet Sezgin Duran --- v2: No changes. drivers/staging/sm750fb/sm750.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index 89c811e0806c..02db1418476b 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -8,15 +8,6 @@ #include "sm750_accel.h" #include "sm750_cursor.h" =20 -/* - * #ifdef __BIG_ENDIAN - * ssize_t lynxfb_ops_write(struct fb_info *info, const char __user *buf, - * size_t count, loff_t *ppos); - * ssize_t lynxfb_ops_read(struct fb_info *info, char __user *buf, - * size_t count, loff_t *ppos); - * #endif - */ - /* common var for all device */ static int g_hwcursor =3D 1; static int g_noaccel __ro_after_init; --=20 2.53.0 From nobody Sun May 24 18:44:40 2026 Received: from forward103d.mail.yandex.net (forward103d.mail.yandex.net [178.154.239.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66D63282F1D; Sat, 23 May 2026 15:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.214 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550511; cv=none; b=k+9TSRyRVhnBpfmiQcRIGHKkS8LmdgiOek2zACm8W8SQvdZuzq/sxuBVQUx0FfYZBVO43v1XWk/hJwuJvxupjhydjDoPe6SuAW9GlR4T1+o8Cvo/KxAWjy6IZoJ849nCAntzQxx4UhvDHyH+HT4AazX0LXH35o4XAsfa76JRK5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550511; c=relaxed/simple; bh=CwJNNCBsvJNFzSCWApDVhdbSadDMkPDrMPTtsIRi4i4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vCZLHb7KQsU+hMv03KEGuH7HSPKRTMjGxSXbU+28SPQHry8/7GlSdlLNnUNkd8fMuJqiJL3F3/XGFlxD4uCZR5xDNN1EGdF3c4SK7odoc04gQrbDld88ubhrZBdv2PzGV2Tqk0CphU3Kq3JAFYNompeH1EY+X2Qo0A/zHDXREHQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=HSzscF/H; arc=none smtp.client-ip=178.154.239.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="HSzscF/H" Received: from mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:eaca:0:640:4fc0:0]) by forward103d.mail.yandex.net (Yandex) with ESMTPS id E39CCC0083; Sat, 23 May 2026 18:35:07 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (smtp) with ESMTPSA id 1ZXKP9PgKKo0-sqI2a4YP; Sat, 23 May 2026 18:35:07 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1779550507; bh=k4QiqVG9fkZCj6ihyj9tY2eiqlAdY8Oop4Qjl04unIk=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=HSzscF/HASa+8xgLFBz572RWIjS5b2dcfKnp6HIPqrENLFQ6yEsfAGbdjiAGNHXnV sTXrx4HdizSE51j2v+Mh6Yu39UJVtq0eWv9ldj06+ks8NVaHa8Fa5U1aongllXfpg9 AAPGzjlXShEQ5w2PLrkY7x1mBtkdq4X+OUGOId9g= Authentication-Results: mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: error27@gmail.com, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH v2 2/4] staging: sm750fb: remove unnecessary initializations Date: Sat, 23 May 2026 15:34:57 +0000 Message-ID: <20260523153459.177488-3-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260523153459.177488-1-ahmet@sezginduran.net> References: <20260523153459.177488-1-ahmet@sezginduran.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove two instances of `ret =3D 0` initializations since the variable is overridden unconditionally before being used. Signed-off-by: Ahmet Sezgin Duran --- v2: No changes. drivers/staging/sm750fb/sm750.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index 02db1418476b..fff9c35ee7b0 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -343,7 +343,6 @@ static int lynxfb_ops_set_par(struct fb_info *info) if (!info) return -EINVAL; =20 - ret =3D 0; par =3D info->par; crtc =3D &par->crtc; output =3D &par->output; @@ -463,7 +462,6 @@ static int lynxfb_ops_check_var(struct fb_var_screeninf= o *var, if (!var->pixclock) return -EINVAL; =20 - ret =3D 0; par =3D info->par; crtc =3D &par->crtc; =20 --=20 2.53.0 From nobody Sun May 24 18:44:40 2026 Received: from forward100d.mail.yandex.net (forward100d.mail.yandex.net [178.154.239.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B1FF301004; Sat, 23 May 2026 15:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.211 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550514; cv=none; b=o47AWLwC3Qfu7cXinJGXfAVWgGhQz1o0Ydyk9qqQtC8ichIM45DRoPqyj6dWvU0kVuPMO+dMVxXvjDgWe6smF186qvIchTOnLvhSn3pLYUn5TBXX6sXH8hyytfqUIqFTAKThHmo0mKXAJmX7Jwpj8XifyVY1d38NpiNEJWImCIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550514; c=relaxed/simple; bh=3vcOCVLKdI54zlOmLZt0nGUfq8a8iWY9e/guB2FnVb4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=su9/JMx1+3//FxkGPInWQEf62ujvn6iTBysucgpTNAgDM59Vq3JC/G0gDszcpCO8FrU2TcdEpiF+R8hxohG7dsf3cnVkbBwcTLNHoKiuzwR5CUFzBbR0AfxxIPfYyJf3brWK7L6fkM0AzmDdwJ6XaxJJdT4hpqJJfKM+VG+a06Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=CAeQzz8B; arc=none smtp.client-ip=178.154.239.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="CAeQzz8B" Received: from mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:eaca:0:640:4fc0:0]) by forward100d.mail.yandex.net (Yandex) with ESMTPS id 43DBCC0076; Sat, 23 May 2026 18:35:09 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (smtp) with ESMTPSA id 1ZXKP9PgKKo0-Twycgy9H; Sat, 23 May 2026 18:35:08 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1779550509; bh=gXRSUYFFhyd/LB++9bdkbtSCbhZEmiWnWAwAZLeNeRI=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=CAeQzz8BtAU3B2KkDDIgNnxslRiaQprv9FadRI31ex2aALuA6FUjoqyK8PwfL/INL HBlnVFTgptKdQXbqwCD5zAGf7tjRqdtpEhWN/7DGnwRL/89K1X38OuDT10y15YptQ/ XJXtwXTV9scnPqU1MOpEjsi1fe3qvnV7DzycXn+0= Authentication-Results: mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: error27@gmail.com, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH v2 3/4] staging: sm750fb: remove unused struct fields Date: Sat, 23 May 2026 15:34:58 +0000 Message-ID: <20260523153459.177488-4-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260523153459.177488-1-ahmet@sezginduran.net> References: <20260523153459.177488-1-ahmet@sezginduran.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove `void *priv` pointer field in following struct definitions: - `struct lynxfb_crtc` - `struct lynxfb_output` Verified that no other code references them. No functional changes. Signed-off-by: Ahmet Sezgin Duran --- v2: No changes. drivers/staging/sm750fb/sm750.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm75= 0.h index d2c522e67f26..56d7e1fa4557 100644 --- a/drivers/staging/sm750fb/sm750.h +++ b/drivers/staging/sm750fb/sm750.h @@ -145,8 +145,6 @@ struct lynxfb_crtc { u16 ypanstep; u16 ywrapstep; =20 - void *priv; - /* cursor information */ struct lynx_cursor cursor; }; @@ -168,7 +166,6 @@ struct lynxfb_output { * *channel=3D1 means secondary channel * output->channel =3D=3D> &crtc->channel */ - void *priv; }; =20 struct lynxfb_par { --=20 2.53.0 From nobody Sun May 24 18:44:40 2026 Received: from forward100d.mail.yandex.net (forward100d.mail.yandex.net [178.154.239.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D4ED314A86; Sat, 23 May 2026 15:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.211 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550513; cv=none; b=swmG0LPC6LzC9F0VtAY+I68XAwb+m0ExdIcfyYTS30bRMWKtWdJag6UmpxWrSKR+AbE2JnE8mgiAE9fHVMB3n7bg5aABQ0xD2i4jlkXEQrAceE3Xnt5zsNcIjlGaZxxVY35cHkDTvOCkbYg8GCJND8UCyuYOxFsZwynUExDPvIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779550513; c=relaxed/simple; bh=Wjadc35WcyCRyJQkobvIgVt6g7yrhLQ73KYo1vbHSxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r6FNOq4OeZAtdc9qAQ8vxelmOOMhcuMV7h6ze5DoyEstNNnB/ecBw9AkfMz0/l9lnJDeLMMfspPvvUHZMWpszS/8BoEgQbjcCsA4ybujrqcd2lXhJDu3Lb+vle0DBTCoJlrcALE+lpPeteDxlQyCkHD6d+hC5l1UDgS6qZxzoBU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=eoe+MrWw; arc=none smtp.client-ip=178.154.239.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="eoe+MrWw" Received: from mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:eaca:0:640:4fc0:0]) by forward100d.mail.yandex.net (Yandex) with ESMTPS id AE01EC0051; Sat, 23 May 2026 18:35:10 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (smtp) with ESMTPSA id 1ZXKP9PgKKo0-RgVynCwS; Sat, 23 May 2026 18:35:10 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1779550510; bh=J/yxEt3eIebvZXTjKlRrPlybwNWvVjWnftLRPHwzLRI=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=eoe+MrWwOVLOsNHVE8229DbiFd0ObQdMDSrCmh4ZGJi6QsHBxy4q4/39/5asPEm9L 25Nz9ZQhk63nSc5UY/rVgpf03756NwNzGFZdrLBPaz4YG8WE1SghCJYBgOmwLIu1S4 YlM8UQX2+U6LBCRUUKMqG3zFwQ9j3w2nkbEY2aYk= Authentication-Results: mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: error27@gmail.com, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH v2 4/4] staging: sm750fb: deduplicate fbinfo loop in suspend/resume Date: Sat, 23 May 2026 15:34:59 +0000 Message-ID: <20260523153459.177488-5-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260523153459.177488-1-ahmet@sezginduran.net> References: <20260523153459.177488-1-ahmet@sezginduran.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" lynxfb_suspend() and lynxfb_resume() both walk sm750_dev->fbinfo[] via duplicated per-index blocks for fbinfo[0] and fbinfo[1]. Replace each pair of blocks with a for-loop bounded by sm750_dev->fb_count, the number of successfully registered framebuffers. No functional changes intended. Signed-off-by: Ahmet Sezgin Duran --- v2: No changes. drivers/staging/sm750fb/sm750.c | 34 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index fff9c35ee7b0..12703fc4bf0c 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -388,18 +388,18 @@ static int __maybe_unused lynxfb_suspend(struct devic= e *dev) { struct fb_info *info; struct sm750_dev *sm750_dev; + int i; =20 sm750_dev =3D dev_get_drvdata(dev); =20 console_lock(); - info =3D sm750_dev->fbinfo[0]; - if (info) - /* 1 means do suspend */ - fb_set_suspend(info, 1); - info =3D sm750_dev->fbinfo[1]; - if (info) - /* 1 means do suspend */ - fb_set_suspend(info, 1); + + for (i =3D 0; i < sm750_dev->fb_count; i++) { + info =3D sm750_dev->fbinfo[i]; + if (info) + /* 1 means do suspend */ + fb_set_suspend(info, 1); + } =20 console_unlock(); return 0; @@ -414,6 +414,7 @@ static int __maybe_unused lynxfb_resume(struct device *= dev) struct lynxfb_par *par; struct lynxfb_crtc *crtc; struct lynx_cursor *cursor; + int i; =20 sm750_dev =3D pci_get_drvdata(pdev); =20 @@ -421,21 +422,12 @@ static int __maybe_unused lynxfb_resume(struct device= *dev) =20 hw_sm750_inithw(sm750_dev, pdev); =20 - info =3D sm750_dev->fbinfo[0]; - - if (info) { - par =3D info->par; - crtc =3D &par->crtc; - cursor =3D &crtc->cursor; - memset_io(cursor->vstart, 0x0, cursor->size); - memset_io(crtc->v_screen, 0x0, crtc->vidmem_size); - lynxfb_ops_set_par(info); - fb_set_suspend(info, 0); - } + for (i =3D 0; i < sm750_dev->fb_count; i++) { + info =3D sm750_dev->fbinfo[i]; =20 - info =3D sm750_dev->fbinfo[1]; + if (!info) + continue; =20 - if (info) { par =3D info->par; crtc =3D &par->crtc; cursor =3D &crtc->cursor; --=20 2.53.0