Message ID | 20200221210319.2245170-16-daniel.vetter@ffwll.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=KiHL=4J=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 6A0051580 for <patchwork-intel-gfx@patchwork.kernel.org>; Fri, 21 Feb 2020 21:04:10 +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 48E6C2073A for <patchwork-intel-gfx@patchwork.kernel.org>; Fri, 21 Feb 2020 21:04:10 +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="OwAeQBHo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48E6C2073A 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 1A4F56F52D; Fri, 21 Feb 2020 21:03:52 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 245EE6F528 for <intel-gfx@lists.freedesktop.org>; Fri, 21 Feb 2020 21:03:50 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id a9so3312735wmj.3 for <intel-gfx@lists.freedesktop.org>; Fri, 21 Feb 2020 13:03:50 -0800 (PST) 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=mt0LsOXPHC2Mb9wycvJ+FxYXLYhKToWbMHDbBuIFXi8=; b=OwAeQBHoXmiqL3qM86BYvSS3mnCumn3/StXzTr+Vtds22QcaVo1o7AFJ84T+zcxoBu K5ZW3TEsMs87VyFy/0nbRZIZNnteigaSa+cbYw62oAsp346lzKGDQ6VIqqZYM4BswuNm bXYD3fZyZs7zhUopDumdB46088eRTH8MXrHWY= 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=mt0LsOXPHC2Mb9wycvJ+FxYXLYhKToWbMHDbBuIFXi8=; b=N9HwGLW8w2ZbeO7A+eRNk+ZWdakDp7pyUFF4WfzmbBtOqW57dwptKdiHQ/urfWo3Cn elvipASL6nFRsZxJ/n4VSYI206yDcWt0OZ2s4FDC4azbtimepdfmoGFxQORJuGiXxIRB 42bVkKyvIrLbxLuTKIzS0ABGhaF4C4V5Y8R6o6OMCpI+KuERzMEAOSMAZinF090ZKPWw GP3jjB/L06wVP4hY9/w5H0qAHWmZB35Ajl8DJSePMx7Wu19O4EBoVN2J13ZiBJ85CR1l /yGDhkCg8Qscr0rsUbibNGLHRt795DYjdkTIGV/gJbSSof4T3dzFlQpeHUmcGe6DCN2J z7gQ== X-Gm-Message-State: APjAAAUp60fHnK5/BxeG4SXmB12Vixbqzuud72dxBr5XKoyh7oHjQsG7 m9azad4WHk1nxkM8nenX+QwIqw== X-Google-Smtp-Source: APXvYqz2IOfRGizBBQqJEEbmC6Q2Got/tMih3FC8thww8AbrFTm4Vu1e4ml0JQkFYQDcWLGqPZ/YQg== X-Received: by 2002:a1c:e388:: with SMTP id a130mr5606572wmh.176.1582319028854; Fri, 21 Feb 2020 13:03:48 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id z6sm5483930wrw.36.2020.02.21.13.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 13:03:48 -0800 (PST) From: Daniel Vetter <daniel.vetter@ffwll.ch> To: DRI Development <dri-devel@lists.freedesktop.org> Date: Fri, 21 Feb 2020 22:02:43 +0100 Message-Id: <20200221210319.2245170-16-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200221210319.2245170-1-daniel.vetter@ffwll.ch> References: <20200221210319.2245170-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 15/51] drm/repaper: Use drmm_add_final_kfree 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>, Daniel Vetter <daniel.vetter@intel.com> 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 managed resources, v2
|
expand
|
diff --git a/drivers/gpu/drm/tiny/repaper.c b/drivers/gpu/drm/tiny/repaper.c index f5ebcaf7ee3a..df5654ef53ee 100644 --- a/drivers/gpu/drm/tiny/repaper.c +++ b/drivers/gpu/drm/tiny/repaper.c @@ -31,6 +31,7 @@ #include <drm/drm_format_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_managed.h> #include <drm/drm_modes.h> #include <drm/drm_rect.h> #include <drm/drm_probe_helper.h> @@ -910,13 +911,10 @@ static const struct drm_mode_config_funcs repaper_mode_config_funcs = { static void repaper_release(struct drm_device *drm) { - struct repaper_epd *epd = drm_to_epd(drm); - DRM_DEBUG_DRIVER("\n"); drm_mode_config_cleanup(drm); drm_dev_fini(drm); - kfree(epd); } static const uint32_t repaper_formats[] = { @@ -1024,6 +1022,7 @@ static int repaper_probe(struct spi_device *spi) kfree(epd); return ret; } + drmm_add_final_kfree(drm, epd); drm_mode_config_init(drm); drm->mode_config.funcs = &repaper_mode_config_funcs;