Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4088167ybg; Fri, 25 Oct 2019 13:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp/BV9WHQADasbHoUgxxZTOJLvzQWWBvquSI0APIOVBV8z4S9YbseVsPL3SNnc25/h7zIy X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr5380584ejb.208.1572034126918; Fri, 25 Oct 2019 13:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572034126; cv=none; d=google.com; s=arc-20160816; b=tLzt9mSUesVT5mgRqrKJRbtqrOqv/MtAoErJFBrRaWEK+Vnw6j3vG4YaoSCM3hGS3L RFJf/61ur+FspOpIWbpDFZn5n4srADzA7+RO620loHrW4Q4FVQwMPaF5biyvwi9Y8hj+ sdyjVEbI9366IXyCiioC8oqeMU6CRv2f81ughJf1Ta/37YaAlpTUwTMdJ0dqYbjn0Wph E5bnDcLKeBqd0VJmQ/oGIDNlJtBOfW2ksRk67WYM30Y/T/8ZFhvAFarZC1vn7a9WBBbM jJDVw8WTKMhmzjU4FAbWPWyX0vIziR1DzMXiV6fvTYRKX6Vve4dpI8zAzuKYLBhnZlPC gAIg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=25nZvlQO3yC7IxomA1FSL3UVFhWXmdHyCH8gs+B5jDY=; b=1GbS+s9VglwKAEmVrDpzqmBqTF/TX+iZBtCCWBdg+Avgazzri8l2m/E7O7jRwf5HUA /beWYxlDza+fjpOvh+lF5PDeVU4/plr/nkJzIpEkjdtF2nW6Uo0c48YltXIIiZI3A8Wy sLSqo0SBp7vp+ENxrs2j/6S6aFOhe4ymcUAfoaxgObLruFnjsORyWdJB03w30ciKsfR3 QULfd8G410I0ZIo9rPLswb/9H+fneo1lwnE2vVOt0eigupdMGX/Ejpc2K0hxFM4EYwv0 KB6AEEJaPWtoazNl/ROevWUFcQVLXiMo84CCLp9DdgCdjQ/Z184xw327KE3mz3vdNr0t H1AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=CHlNbLzn; 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 v8si1753070ejx.254.2019.10.25.13.08.23; Fri, 25 Oct 2019 13:08:46 -0700 (PDT) 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=pass header.i=@rasmusvillemoes.dk header.s=google header.b=CHlNbLzn; 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 S2440340AbfJYMlf (ORCPT + 99 others); Fri, 25 Oct 2019 08:41:35 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35993 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504491AbfJYMlV (ORCPT ); Fri, 25 Oct 2019 08:41:21 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so2560487ljj.3 for ; Fri, 25 Oct 2019 05:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=25nZvlQO3yC7IxomA1FSL3UVFhWXmdHyCH8gs+B5jDY=; b=CHlNbLznCLD+9QqB53UKVxFWZZx6+NuuoSSZ04+l9L/wWDzqpQDRs+hb/7KwGrnUKE DXwI+kb2gkU0u8cK+N+oOl6YK5aRBzeHmMaUTEpH2Fbpd/D4tunbyu1e5xE0bT7G1Jgs HXleEroGe7pXlS5k2YW9XUhmioLEBexahKruc= 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=25nZvlQO3yC7IxomA1FSL3UVFhWXmdHyCH8gs+B5jDY=; b=A/NyYbiHYx0uFrxrr9csobecVbL7BYCDY/Ew6Vjvl9rZ5mZwAxxvnA0NgJCAQ9v9FG rW0D81cryEXt+H3eWWPvGVPcBsX62YPs3qbPoheZIC9aeD+OAKg9ROUiRW7nHgqs/+MC SyvF9zfS5p6dbiTbAhXLjlCvzOZHPepT6dQjhz246tCzUy+nvgKG6Qok9Kwln3ILKj0C /6bDMvtyzKeC20fK81zthi3ddQrYyMAXkN6eLttNvkiuQHXiF7f+64OiEtW7+k3Kut3n OEkDSP+43YxwvKC+wb7diV/NZ3oiWL3zeab9cTb8LlkrNrYxcc9Kkm84lYVAYWx6fSmt ldUQ== X-Gm-Message-State: APjAAAUw8vN0elWnmHOTx8jfK6KlQADcGNd/YncojMFIfQ0V34rezLgs CN48uU9KIYsASFK09q0WnI8kBg== X-Received: by 2002:a2e:89d3:: with SMTP id c19mr2340355ljk.201.1572007279184; Fri, 25 Oct 2019 05:41:19 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id 10sm821028lfy.57.2019.10.25.05.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 05:41:18 -0700 (PDT) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Valentin Longchamp , Rasmus Villemoes Subject: [PATCH v2 13/23] soc: fsl: qe: remove pointless sysfs registration in qe_ic.c Date: Fri, 25 Oct 2019 14:40:48 +0200 Message-Id: <20191025124058.22580-14-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191025124058.22580-1-linux@rasmusvillemoes.dk> References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> <20191025124058.22580-1-linux@rasmusvillemoes.dk> 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 There's no point in registering with sysfs when that doesn't actually allow any interaction with the device or driver (no uevents, no sysfs files that provide information or allow configuration, no nothing). Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_ic.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index 61a40e40f3ae..6bd6d6fb9696 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -604,34 +604,3 @@ int qe_ic_set_high_priority(unsigned int virq, unsigned int priority, int high) return 0; } - -static struct bus_type qe_ic_subsys = { - .name = "qe_ic", - .dev_name = "qe_ic", -}; - -static struct device device_qe_ic = { - .id = 0, - .bus = &qe_ic_subsys, -}; - -static int __init init_qe_ic_sysfs(void) -{ - int rc; - - printk(KERN_DEBUG "Registering qe_ic with sysfs...\n"); - - rc = subsys_system_register(&qe_ic_subsys, NULL); - if (rc) { - printk(KERN_ERR "Failed registering qe_ic sys class\n"); - return -ENODEV; - } - rc = device_register(&device_qe_ic); - if (rc) { - printk(KERN_ERR "Failed registering qe_ic sys device\n"); - return -ENODEV; - } - return 0; -} - -subsys_initcall(init_qe_ic_sysfs); -- 2.23.0