Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp522568imu; Fri, 7 Dec 2018 05:00:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/VoTkigV/BroF4IHmwBkdM4ryYA6Ffh3mlVigzbzZyWlGTd9P/rC9LkTV5RN98O+4RNCbtZ X-Received: by 2002:a63:2e88:: with SMTP id u130mr1899463pgu.9.1544187618138; Fri, 07 Dec 2018 05:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544187618; cv=none; d=google.com; s=arc-20160816; b=aQwJ8lKuflBv7MPLhXKZ1lmyrT2BHpKpL74m/5HFfF4aeuljXQ6U8pAGagl51GspK2 P7rHQBFJJKJg9v637LAQtkxoLr2I4NQpFZ+GKcmxcNXJ6kLtnUc5boreAE/M8WSgJ4zb u1fbT63L1bO/I6H9JlGIA7qlT+gA1N16ndQUwyDwLP/AX53rpSqGOMhPqEB7qPj5NcY0 nZKOxTqZ9lp6q5Tn755C0jR8I0yQSla1kCPYHrYeKT8HovvAHaeGBQvfCBEdkyavpPLS yDX2V/GA9gvQWfHwhUUjMiiuXCxFinf9/PTOouOTAyG+rfFRIM3BPY4MWQyj1nisEcDM k3Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VOstuElbSnWjht63gBCu7fmMuTQw3tfTkXOtwgjJuVg=; b=MlazlhhhXwM4SQSqyNW8M69xmW/kUguutcLB6e7C9xjeXweQKLLE/Aj4RsQHBkvtT9 sDTRdKLv7pEVMoAIOHIzx4sxhYJfJ8OGfBWUzO0aNVgVoJT3D5leUkvFRiPCNCAX8GQD cZ8GfKfWKzCAkkAlKjmqb/VX97AN0bQA0/i58zAzT+qtO9BxfIHPl5xgHiHThtU4j7Wy Y27klpHVMl+F4uMFN6pSwZFPxJ5M6mEKEjFjuLhMuII8Scf7nc1Im9CVm9TNTjf31tP/ Ylj9j7Sf4+0PEPqhZN6/8VsPmqzG1C89rjN8E3zZXc+xR2klFItuX5epcpdryjUnaxne rsJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sGTF+96d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 88si2920508plb.288.2018.12.07.05.00.02; Fri, 07 Dec 2018 05:00:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sGTF+96d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbeLGM7J (ORCPT + 99 others); Fri, 7 Dec 2018 07:59:09 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34932 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbeLGM7I (ORCPT ); Fri, 7 Dec 2018 07:59:08 -0500 Received: by mail-wm1-f65.google.com with SMTP id c126so4435695wmh.0; Fri, 07 Dec 2018 04:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VOstuElbSnWjht63gBCu7fmMuTQw3tfTkXOtwgjJuVg=; b=sGTF+96d/jZD86sQ4JO4IaLQTe7ZVM9HCf1Ja2R/aZt7QL7mq+K2tvZKKaAuQm68VD rutM5UFZ3j6+35poHElyzW3LooK2jHwMw6yRidoivbUaqbKhuX7OP/T8ucqIkArpGOc7 0EZrjRkq35APWrz9CQHcBZswOZy+rHF7xw8Szg2CSBGMwEqfYzw8sWC/CVntPd44yFdL IBUvwVTZU+FpGKadw0KlaGdexiveJxNDvLqanwq58i8e2y1BHX894xAQgy6rzOA1uvzh 10Wtk/KWQB/Waxjsx3rcH4rxkllyJq+9CxRB6ISbfs7CbvNwAEfO3Tw+OmPTVS4NBlN/ 6BXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=VOstuElbSnWjht63gBCu7fmMuTQw3tfTkXOtwgjJuVg=; b=MQTA0YRNaNmWW0mkvnHoaeVIENTRSBS6K0cvY26KBserFlixpxO9C/pPwcDCYac7Ko HO0052beCqyKbY9pz8JAWyQx5dNp0U6NU5QB5Yvh8ZLQRYFMuQcbrQfgrxPgz8maPS7S t8fkUcNwe+S5PoQiNK1FDvzgRoblPNALlePXzsOX0Up9TAlG/11BH//vrrgKlG6N6LE5 QSjColfHhbd6HLsGbqZMX0FzzYfxr9eo61fK8dyWqfQnrMaGqUju0EYiSnx5KL7N2iqR lI9NYVhU7PIsh3x5YDiYow+PzWYlKWPOUyd0KIwsRF8PMmDmyhaSpS0Rvh74e/2LToB9 IM7w== X-Gm-Message-State: AA+aEWZe4atgGnNF4mKIxv67TcjeqeiB7OwTQm8j1dkOW3aeuPVxNdTY MCZ5Rlm76w3Z3mXD83jx1Kc= X-Received: by 2002:a1c:770c:: with SMTP id t12mr2147070wmi.101.1544187545813; Fri, 07 Dec 2018 04:59:05 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id r3sm3654635wrs.78.2018.12.07.04.59.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 04:59:03 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 5C9E61144859; Fri, 7 Dec 2018 13:59:02 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Cc: Mathieu Malaterre , stable@vger.kernel.org, Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: offb: Pass actual name in offb_init_palette_hacks Date: Fri, 7 Dec 2018 13:58:42 +0100 Message-Id: <20181207125844.18775-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a partial revert of commit 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name"). This is the minimal work to get a Mac Mini G4 back to a bootable state. The function offb_init_palette_hacks would need to handle the case where `name` has been set to NULL. Cc: Rob Herring Fixes: 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Mathieu Malaterre --- drivers/video/fbdev/offb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c index 31f769d67195..6e75851f8142 100644 --- a/drivers/video/fbdev/offb.c +++ b/drivers/video/fbdev/offb.c @@ -648,7 +648,7 @@ static void __init offb_init_nodriver(struct device_node *dp, int no_real_node) /* kludge for valkyrie */ if (strcmp(dp->name, "valkyrie") == 0) address += 0x1000; - offb_init_fb(no_real_node ? "bootx" : NULL, + offb_init_fb(no_real_node ? "bootx" : dp->name, width, height, depth, pitch, address, foreign_endian, no_real_node ? NULL : dp); } -- 2.19.2