Message ID | 20200323144950.3018436-47-daniel.vetter@ffwll.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Atw5=5I=lists.freedesktop.org=intel-gfx-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45952174A for <patchwork-intel-gfx@patchwork.kernel.org>; Mon, 23 Mar 2020 14:52:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 243B820753 for <patchwork-intel-gfx@patchwork.kernel.org>; Mon, 23 Mar 2020 14:52:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="bGgaG+Ot" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 243B820753 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA55A6E261; Mon, 23 Mar 2020 14:51:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9CA2E6E22A for <intel-gfx@lists.freedesktop.org>; Mon, 23 Mar 2020 14:51:02 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id t7so12749138wrw.12 for <intel-gfx@lists.freedesktop.org>; Mon, 23 Mar 2020 07:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=50EvKYMoILj2aPfjn/Hmz526xC3SseH5NBkdaf27Kgw=; b=bGgaG+OtLOnceuZjJpIQblgDW6+sArODIz0nkL+ewFPgjJwh6+oHZXK0UeMi2MIlUH fh5lBoHrrT4Q62zNm5lul/36Nd0+xfHgkF1q/4sx19C5qxKdmtve+Kmo0N6l63y7eVVv cILqDGQ1gTSvNCOmK2vw60As4xrtqun0SY1M4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=50EvKYMoILj2aPfjn/Hmz526xC3SseH5NBkdaf27Kgw=; b=AqEFH94E+JYwq/O2pHJGq7a/1+oMk3lUvKg1QCHXcV3HOKxmtTvooS8BnD56bCXK0E w7SThOIVz246fhoZ0yUe6znOMKfARsqqwlxFgIWfdNQD4K9xVAtXC1NkhBxnIyo0wcCQ DdzaLTScwW6WxW8Rr3NHWPCKjZhFp05zsFtqxwJdhuhROOfWaQR4k4r/BfGAFe8yPobo kRNRQPQEpI2/ZktvCe4IGDHwjj2iFC9VG3vpsUioKlD5u7p+XjpMail3OGd+X6TQlQvc oZ1l2gp9MdeJXyQVXb2r1DQuAZJ3G7ctHnbJxJaLocOIKzSFKlgW0psIyVHEvKjpr2Ke j9kw== X-Gm-Message-State: ANhLgQ2MGWU8vwHeQAaYK1y2TCYqF7b2YzLkpt288Z2dQAPbfU81KKeB cKN8imVr2CUP7zKhh8PMEnhOrw== X-Google-Smtp-Source: ADFU+vtGLTcVL1NpXElhTqgDYjk11Z0GhUTSRMtv6BBr/5S/HkwhkseI0DXo27+ow/6UGcKINWGyiQ== X-Received: by 2002:adf:9321:: with SMTP id 30mr29275077wro.330.1584975061180; Mon, 23 Mar 2020 07:51:01 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id s22sm20376522wmc.16.2020.03.23.07.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 07:51:00 -0700 (PDT) From: Daniel Vetter <daniel.vetter@ffwll.ch> To: DRI Development <dri-devel@lists.freedesktop.org> Date: Mon, 23 Mar 2020 15:49:45 +0100 Message-Id: <20200323144950.3018436-47-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200323144950.3018436-1-daniel.vetter@ffwll.ch> References: <20200323144950.3018436-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 46/51] drm/repaper: Drop explicit drm_mode_config_cleanup call X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development <intel-gfx.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/intel-gfx> List-Post: <mailto:intel-gfx@lists.freedesktop.org> List-Help: <mailto:intel-gfx-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=subscribe> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, Intel Graphics Development <intel-gfx@lists.freedesktop.org>, =?utf-8?q?Nor?= =?utf-8?q?alf_Tr=C3=B8nnes?= <noralf@tronnes.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Thomas Zimmermann <tzimmermann@suse.de>, Daniel Vetter <daniel.vetter@intel.com>, Sam Ravnborg <sam@ravnborg.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" <intel-gfx-bounces@lists.freedesktop.org> |
Series |
drm_device managed resources, v5
|
expand
|
diff --git a/drivers/gpu/drm/tiny/repaper.c b/drivers/gpu/drm/tiny/repaper.c index 4741ff670ec9..862c3ee6055d 100644 --- a/drivers/gpu/drm/tiny/repaper.c +++ b/drivers/gpu/drm/tiny/repaper.c @@ -909,13 +909,6 @@ static const struct drm_mode_config_funcs repaper_mode_config_funcs = { .atomic_commit = drm_atomic_helper_commit, }; -static void repaper_release(struct drm_device *drm) -{ - DRM_DEBUG_DRIVER("\n"); - - drm_mode_config_cleanup(drm); -} - static const uint32_t repaper_formats[] = { DRM_FORMAT_XRGB8888, }; @@ -953,7 +946,6 @@ DEFINE_DRM_GEM_CMA_FOPS(repaper_fops); static struct drm_driver repaper_driver = { .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, .fops = &repaper_fops, - .release = repaper_release, DRM_GEM_CMA_VMAP_DRIVER_OPS, .name = "repaper", .desc = "Pervasive Displays RePaper e-ink panels", @@ -1023,7 +1015,9 @@ static int repaper_probe(struct spi_device *spi) } drmm_add_final_kfree(drm, epd); - drm_mode_config_init(drm); + ret = drmm_mode_config_init(drm); + if (ret) + return ret; drm->mode_config.funcs = &repaper_mode_config_funcs; epd->spi = spi;