Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3115139pxm; Mon, 28 Feb 2022 12:19:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBje8JviC6i7/+kYFG0zPmBAvIXxQ/hPuTCCcz9LR1wyajuNImL04cOHZf2SYmgtUQCJ2O X-Received: by 2002:a62:8f87:0:b0:4cc:3f6:ca52 with SMTP id n129-20020a628f87000000b004cc03f6ca52mr23467888pfd.79.1646079598814; Mon, 28 Feb 2022 12:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079598; cv=none; d=google.com; s=arc-20160816; b=RoclfmZJxZj5VFRcs1eteU/v501e2rGi1OHUnt7IIDZIZ9KTMLjDBqz3DXFrIOfbIF EAF011GuQ7O+CnlbuE/PYwtl4ae4YMUYau6I2DjgHfT/Ttse7s2eLiTJZnQWd+PnMY6S wZyccAhotMg8Us3qnZcyY+GVi4xsXqS8jCrmbRFVEG6viHCHgPvaapUwPfirE1qzEMSf ZuLTv9DG5oIqHUa1x6BLHwHjTuEDGSttxyALAA1UV/qBb2qPW8cM2F9BKVIPJKUOz7tQ a+kHAmc2koSt4VckpQO4EtpSjXm+87Cb7itPr+fBI3AeCx5pbrK/7O0ijHujRXX1p4mQ cW3A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=q6YEE4tA+o8+T1pGK0p5yO3E7r4KEuRuaX2SCJDWnvc=; b=RixpVpp63lTCcisAwKzBRdSJgCjtRb9WnXERYBQhGXToCen+KX7iAGQ+Ajql1i86jf CouKbmxSD/nHampRHabpOFB+JoSePAMGm/KV50EDrmK+ZjM15ahD+h5vOw74Vh5cDoQe hhGdAq2ajqCh8ogwgulVIyvaEbZtgYpHsJixeyO0WAhneoXVKid2snby12Iamz2dTlEK 4uOVtjm+mXfU14zyiKglK1mkmprZu8Ju4mn0Z43/rBiEd0gLJT8CB344prvZuMj3uVme ubjV7NgBpGxc/Rw4aE76zQPd6A8lbUbMBaVk2dOEfru9Tx6s1fZk5I+K08sLn6mdZ3mD /FyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UK4OCcoK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 191-20020a6214c8000000b004f3c484d399si9852209pfu.90.2022.02.28.12.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:19:58 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UK4OCcoK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E7EE19E70B; Mon, 28 Feb 2022 11:39:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240947AbiB1Snq (ORCPT + 99 others); Mon, 28 Feb 2022 13:43:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241165AbiB1SnN (ORCPT ); Mon, 28 Feb 2022 13:43:13 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FF065E3; Mon, 28 Feb 2022 10:40:11 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id r10so16909255wrp.3; Mon, 28 Feb 2022 10:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=q6YEE4tA+o8+T1pGK0p5yO3E7r4KEuRuaX2SCJDWnvc=; b=UK4OCcoKkVzJD4hyevzvTcvD5hTLJardtwDy3/dx7l/NiGxcmXubRspkglxKSaH6yh /nz8d/Hs/N6u1gdxJ4LT8UEF3bXy4tNQn0xQUGLDU56Wi/7YcvqmqL3w0H1+wEy1Hz54 Av4nS7fn8FhGaOrq98iHrnN0V0pMIIOKfzIYsGxTfyy7ZqH0zEgGn133pkp/Q9lMdtzq YzkOQ9OWS1Z3Mt1ZgK/E0EV7DE9luOSiEKMJx470JgQfseYVGcxZRr/ktRD3XqJfTHnC 3Ymcf/IcTVzVBRnT8hZd2t918UjL6DNajkHkbhpWriA8YzQ7AFmDoIdS+dkeKPuk7bo6 4aUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=q6YEE4tA+o8+T1pGK0p5yO3E7r4KEuRuaX2SCJDWnvc=; b=J8qGZtZfFZpa5E4wcppmgurDu5AZbzFBgRJf83MFKT+yCYiqxTZWE3NKkINAeq7eXv tOvSodRC18zJKeMye/uir6X87LXXSjXCG6Rwmd5xzI35O0XC7sTNI9FHkCZ0dSD88VP1 Uqk//1szTELl58Id+kxZTpW3yFpUhrDg+0GrNR60Pti8HSFaMIiFUwlmhAYYQUa/6gn3 y4XDZIPu8u0qeOXXN0vq6s9YpdEYM11yL4MtN1HM6V7n6LmJq/PFzu5/+MiHqT0phiL5 BL6YCKyF/akHvOgu+oz9MNDeEbCi7ILJyTLAhi+tc9GyuTC3jEcswSKE21/y0/+YoGSd lIBw== X-Gm-Message-State: AOAM530qmPUusGVCfz+p/hTCvicygki12fMm39DJona9ub+hVtNd7VDI 91V7j8J9wLs1vSBLEuyaF3I= X-Received: by 2002:adf:ea44:0:b0:1ef:6f00:cf47 with SMTP id j4-20020adfea44000000b001ef6f00cf47mr12996852wrn.460.1646073609801; Mon, 28 Feb 2022 10:40:09 -0800 (PST) Received: from localhost.localdomain ([94.73.33.246]) by smtp.gmail.com with ESMTPSA id o18-20020a05600c511200b00352ec3b4c5asm297692wms.7.2022.02.28.10.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 10:40:09 -0800 (PST) From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= To: andrzej.hajda@intel.com Cc: narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, maxime@cerno.tech, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH] drm/bridge: ti-sn65dsi86: switch to devm_drm_of_get_bridge Date: Mon, 28 Feb 2022 19:39:54 +0100 Message-Id: <20220228183955.25508-1-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The function "drm_of_find_panel_or_bridge" has been deprecated in favor of "devm_drm_of_get_bridge". Switch to the new function and reduce boilerplate. Signed-off-by: José Expósito --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index dab8f76618f3..fb8e16ed7e90 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -1232,15 +1232,9 @@ static int ti_sn_bridge_probe(struct auxiliary_device *adev, { struct ti_sn65dsi86 *pdata = dev_get_drvdata(adev->dev.parent); struct device_node *np = pdata->dev->of_node; - struct drm_panel *panel; int ret; - ret = drm_of_find_panel_or_bridge(np, 1, 0, &panel, NULL); - if (ret) - return dev_err_probe(&adev->dev, ret, - "could not find any panel node\n"); - - pdata->next_bridge = devm_drm_panel_bridge_add(pdata->dev, panel); + pdata->next_bridge = devm_drm_of_get_bridge(pdata->dev, np, 1, 0); if (IS_ERR(pdata->next_bridge)) { DRM_ERROR("failed to create panel bridge\n"); return PTR_ERR(pdata->next_bridge); -- 2.25.1