Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5599378rwd; Mon, 12 Jun 2023 07:16:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vLYTNGINOV5gIJSqtxEXpLwSpjxG2p6w0J+tF1YQmDRyGV1IOo8GpLY1HNAz9ZASsAOWb X-Received: by 2002:a05:6512:328c:b0:4f2:53ab:8a2d with SMTP id p12-20020a056512328c00b004f253ab8a2dmr4060296lfe.4.1686579408992; Mon, 12 Jun 2023 07:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686579408; cv=none; d=google.com; s=arc-20160816; b=kR6kbZ8VbFgxkMjB9EMY/mP1cbIgZBd91Qr+LIG9XoZjbVgPli8Q4WDGgnIl9V4O3X HPMvKE+4/8mbZrOB43ZdXWaNiYszp8Ux1h02PCEtWKB+dwwYen0LGi1CcC2TN0sOzh9Q EnFJ/9JmimbLqXN/X3ffrrUXRBKn+ItLyi3tFsQ5x+M2dxGaMu3lYaRMFJDfT1wYz/QH 4zeUH3Q2C6vbKTSUOXD9AVupR9mDHi2ZM+KJvwT40eT79V/3wrteSwe4NJjU1dfoBWpn PqVq9IAAUJWMBlIR158eUaZVigL21RflzHqGBXRZt+PIrh8+S3ndti0JKeDdwCtxlPrj uTRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=OR02NEwUSP8FXSon8tyHmE/KyIqGUhG5N2y46Bi62QI=; b=Rz5ObnGx51j2AzcOzdHxyujWbsQt4FK7r+V2Cqgk20ptKTdjftkozRrkwGEobREcwz 9R12ewxMv1v/xEIKGhr6282K0vKFFfDeZdSx7/HoqHZzH4F1LTINMqDhFkaI2+/WQbRg PsfALz5Fdtwi1yIE7hEHoITCqy7G/5xymaL8XGFQs4XnHLKH/fb4ONyp3bqcu9C81BWa XVCvcevKIeCCm/9komlTLaq2j4gHkiQW30nGG9SqEDoWrerW2Tk6ZbNtBj4c73+mEkn+ VlOZzdKsicg2Pdz5/xsFyMSlQSWJe5SB5ZHYI1B+ge1ocs5pUrZAEwS2HmhmfQRbQmK+ kUTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PGUDPPLQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=CDo5uM75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a50ef15000000b005184a5b0574si495255eds.298.2023.06.12.07.16.23; Mon, 12 Jun 2023 07:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PGUDPPLQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=CDo5uM75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237484AbjFLOPJ (ORCPT + 99 others); Mon, 12 Jun 2023 10:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237360AbjFLOOG (ORCPT ); Mon, 12 Jun 2023 10:14:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C88B6118; Mon, 12 Jun 2023 07:14:00 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2F0AE20488; Mon, 12 Jun 2023 14:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686579239; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OR02NEwUSP8FXSon8tyHmE/KyIqGUhG5N2y46Bi62QI=; b=PGUDPPLQJyP4JFs/sdYWj+CCIstuX6bgaf5ORDYocKXzbjHhPR0A1OapeYuVd9U2PyryaU Uysf+xPcg2I0Zkbe47sVSDDnu2lVEWi2FOcnSS/cTyBAu/pvki+SbOmmdE68yEVxUzOXTE /Uwygzp0t3D4wGqS5X0nCUahj0u8QPU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686579239; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OR02NEwUSP8FXSon8tyHmE/KyIqGUhG5N2y46Bi62QI=; b=CDo5uM75qTl+mVifu8X+DIqlj927x4k48L5XgKoXLWp21u+DRMKl6doQcEnxc1XwkrQE83 T3M4wuMoIoydxwDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D762C1357F; Mon, 12 Jun 2023 14:13:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0OPHMyYoh2RwGQAAMHmgww (envelope-from ); Mon, 12 Jun 2023 14:13:58 +0000 From: Thomas Zimmermann To: daniel@ffwll.ch, javierm@redhat.com, sam@ravnborg.org, deller@gmx.de, geert+renesas@glider.be, lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, dan.carpenter@linaro.org, michael.j.ruhl@intel.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v2 13/38] fbdev/ep93xx-fb: Output messages with fb_info() and fb_err() Date: Mon, 12 Jun 2023 16:07:51 +0200 Message-ID: <20230612141352.29939-14-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230612141352.29939-1-tzimmermann@suse.de> References: <20230612141352.29939-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix cases were output helpers are called with struct fb_info.dev. Use fb_info() and fb_err() instead. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/ep93xx-fb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/fbdev/ep93xx-fb.c b/drivers/video/fbdev/ep93xx-fb.c index 376ee59e925c2..f6cd200fe50ff 100644 --- a/drivers/video/fbdev/ep93xx-fb.c +++ b/drivers/video/fbdev/ep93xx-fb.c @@ -436,9 +436,9 @@ static int ep93xxfb_alloc_videomem(struct fb_info *info) * least. */ if (check_screenpage_bug && phys_addr & (1 << 27)) { - dev_err(info->dev, "ep93xx framebuffer bug. phys addr (0x%x) " - "has bit 27 set: cannot init framebuffer\n", - phys_addr); + fb_err(info, "ep93xx framebuffer bug. phys addr (0x%x) " + "has bit 27 set: cannot init framebuffer\n", + phys_addr); dma_free_coherent(info->device, fb_size, virt_addr, phys_addr); return -ENOMEM; @@ -525,7 +525,7 @@ static int ep93xxfb_probe(struct platform_device *pdev) err = fb_find_mode(&info->var, info, video_mode, NULL, 0, NULL, 16); if (err == 0) { - dev_err(info->dev, "No suitable video mode found\n"); + fb_err(info, "No suitable video mode found\n"); err = -EINVAL; goto failed_resource; } @@ -554,8 +554,8 @@ static int ep93xxfb_probe(struct platform_device *pdev) if (err) goto failed_framebuffer; - dev_info(info->dev, "registered. Mode = %dx%d-%d\n", - info->var.xres, info->var.yres, info->var.bits_per_pixel); + fb_info(info, "registered. Mode = %dx%d-%d\n", + info->var.xres, info->var.yres, info->var.bits_per_pixel); return 0; failed_framebuffer: -- 2.41.0