From patchwork Wed Dec 11 10:34:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3323781 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 71FB59F37A for ; Wed, 11 Dec 2013 10:34:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E2A1206C3 for ; Wed, 11 Dec 2013 10:34:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3FF1D206C1 for ; Wed, 11 Dec 2013 10:34:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 655F4FAA25; Wed, 11 Dec 2013 02:34:47 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 7DFFAFAA25 for ; Wed, 11 Dec 2013 02:34:42 -0800 (PST) Received: by mail-ea0-f182.google.com with SMTP id a15so2824216eae.27 for ; Wed, 11 Dec 2013 02:34:41 -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; bh=DqRM3CupG+jZEGTLpCESDwSXqRTBM9TlSBM8ybNj0p8=; b=NL9ppzYKU2bXlhZlD1YnXCdTDJ79tGRfTdbsFzYWZqJTDBBjPRS2/TSo/UyFdqVHxq ksXZQurFKYKeh8UWbgCATIsM9SDvoKwjo6F3hBWG4aeS3d7mkcj7UpW68/Pg4CS7sUWb +NbGB5Tx2Ifsw8STCxUyNpUvQsNPztHyKDhnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DqRM3CupG+jZEGTLpCESDwSXqRTBM9TlSBM8ybNj0p8=; b=WSxrtmVsLVmmhAcXHsAx6bxe1IdXD65jltMi1tKEVKcW0hJjng/it8ts4vwcHhR0h9 ZFcDKR9BVXkOg/Yb/w/v/jEpRTbRbdK2YW2Z6HnPL25goMfIWRkwmRbYp9vTYm7eNBP/ Lcq7orNI7naKOg8alyBk21j8Tcv9Sw3PDBvTYDtMd70xYitgOqWFgb/t0dt5jaChKFbR xjT6saa6cwrSkC0hzK1cjnPr+VWMjk5tGqIr2uFv7+Q2pPCV/Q7kYnAQByENJqmJY0Sk UJylGZEFHz/phVDQ5gRmbdWTqKSD7xo0o6atSZRR8ufoY56hGLiuIlbr3zC+3LbF/cRP 6HGw== X-Gm-Message-State: ALoCoQk455m1mpfWrNgIsdHNK1Q/i/xRcPzZRVCBKgC5oAbKSl8AbQCCleEJPkXIsyJ+R5Se7Wzn X-Received: by 10.14.88.134 with SMTP id a6mr927953eef.5.1386758081867; Wed, 11 Dec 2013 02:34:41 -0800 (PST) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPSA id b41sm51932269eef.16.2013.12.11.02.34.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2013 02:34:40 -0800 (PST) From: Daniel Vetter To: DRI Development Subject: [PATCH 09/50] drm: rip out drm_platform_exit Date: Wed, 11 Dec 2013 11:34:30 +0100 Message-Id: <1386758111-3446-10-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1386758111-3446-1-git-send-email-daniel.vetter@ffwll.ch> References: <1386758111-3446-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This very much looks like a remnant of the old legady ums shadow attach days. Now with the last users gone we can rip it out since we won't ever support an ums drm driver again. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_platform.c | 11 ----------- include/drm/drmP.h | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c index fc24fee8ec83..56a48033eced 100644 --- a/drivers/gpu/drm/drm_platform.c +++ b/drivers/gpu/drm/drm_platform.c @@ -151,14 +151,3 @@ int drm_platform_init(struct drm_driver *driver, struct platform_device *platfor return drm_get_platform_dev(platform_device, driver); } EXPORT_SYMBOL(drm_platform_init); - -void drm_platform_exit(struct drm_driver *driver, struct platform_device *platform_device) -{ - struct drm_device *dev, *tmp; - DRM_DEBUG("\n"); - - list_for_each_entry_safe(dev, tmp, &driver->device_list, driver_item) - drm_put_dev(dev); - DRM_INFO("Module unloaded\n"); -} -EXPORT_SYMBOL(drm_platform_exit); diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 1d4a920ef7ff..43f69bb2cff4 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1660,7 +1660,6 @@ extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask); /* platform section */ extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device); -extern void drm_platform_exit(struct drm_driver *driver, struct platform_device *platform_device); /* returns true if currently okay to sleep */ static __inline__ bool drm_can_sleep(void)