Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2486023ybx; Fri, 8 Nov 2019 05:06:35 -0800 (PST) X-Google-Smtp-Source: APXvYqx6aREUJnI/IPzFbxc45obyErJjyQB8xbMFlKQ/veCfX7TxT08cIYco5yVhS+ZZdbC3/7b9 X-Received: by 2002:a7b:c924:: with SMTP id h4mr8119765wml.28.1573218394841; Fri, 08 Nov 2019 05:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573218394; cv=none; d=google.com; s=arc-20160816; b=hfJf+b0O6mfzbI/kjcWBykxmaP3OpNJvKmW9zUT6NB8qm31Ps2CTj2UrOx+xsduVTP +FHttkUl96TeYkeh1yMIh9cst4ehA0QY7cJCbXjnMlzufS0LpDRhL+qANaRqkYK0E6XX 3cCNNoBOZRUCISI68ekkIvAXsC/Q/aB7wNu0N/gDgdWMQeOvBsOex3+6oj+vteAomRGO sFFr/IU24VyB7iq9E/Na4sfNDM5Jvjd+Kp+yuE6dh7CqXC6DKBHlAC/l5dTn1x7vdwyp ECjRfGaRbywxWSrMZWgIMSAngYZcjdlG0QGxx5m73DXWYhknGfV7EkpkiFEcXEsdMmfH R/mw== 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=c6cX64DMSTf/KsycxtOgXNPxmcIGKLx/O+3SoX0LMUM=; b=RuLJx/+cZgK/gOAYa+tUjcHsKlYChuVQ6tMVj4tAucqxPil72L4aoBkDHA7iz/Ppan useZgcdUUpH2JbhMavZI7BH4/dgRC6KD4q0RbNoPMWNIbKXWHLpY7k/18skw5uuHJeOm US+9yzlAKwKhS1J+xG0mGcnU8VPDtANAP5+E3gX3lq5KyZUSfADrbcmmgA0k4ID4EUL4 DRs3yRwPY9k2t7PqdzzDax+sMbL3pxvccgb8IJ8fxLcsCzMpWm5fHLBG7gjdz8s9wT6d J+fZvstKeVGLYie7LMfDkezaRZ7hcBXyzmH/BG5Pe/nXo0G6JT9C+uEnINSu+T7nZnCx 3PYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=aFa6mpYI; 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 c10si4115089eda.284.2019.11.08.05.06.11; Fri, 08 Nov 2019 05:06:34 -0800 (PST) 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=aFa6mpYI; 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 S1728077AbfKHNBo (ORCPT + 99 others); Fri, 8 Nov 2019 08:01:44 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:44444 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727949AbfKHNBm (ORCPT ); Fri, 8 Nov 2019 08:01:42 -0500 Received: by mail-lf1-f65.google.com with SMTP id v4so4390160lfd.11 for ; Fri, 08 Nov 2019 05:01:41 -0800 (PST) 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=c6cX64DMSTf/KsycxtOgXNPxmcIGKLx/O+3SoX0LMUM=; b=aFa6mpYIjn6zAblZVHGQgXXQoRxCga8U3ftmm9BhSW3mk4UWih+KrACx3+tf0MJlpP SNfdCuV08yx20a+qynyU5vFYSa4M3OrSAteQlBeLbFzBvXmlTls7gwFWJ1TuyBz4t59s xlGRr9NkLpL2PcAqG+7nsK57V4bmDPlz26g24= 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=c6cX64DMSTf/KsycxtOgXNPxmcIGKLx/O+3SoX0LMUM=; b=P8yxMCz2QZ5nYcCbH/f9J3OPTz9IYbgn75bJU2maHq08O70DjT1cQtUEbpab+C2T2Q 2BzWgh5uooGtuw7CcaWc+9+dLi3HVzPd8ctMIAgm0ZGSQl8rPxbdbr4HS+lnSVXORzwT 9NbtUWm4QJ9o85sNSwIVAMnPjrzUFHfSx2iw+VvzpaQKI9pO4+RFjJgnNCBLwcdinaqW 0wezK7BzjT3uTD1EBPoRQ8f7cm8rqbDrQ4qnX/WEYxEkynU6I4kTr9oVs79d6jsB+opb MajmpgC4iXyAWCy4ShbW1su/EInuUueXwaQYIIsfBISaYsF/sqjCyrmhbCa15lXaIRXr twDg== X-Gm-Message-State: APjAAAU6IoWL1VA4t56TQEjAuKxIDQNEYHFb7GkovNpSfrPUe9YCApSF AnypDcovPKXcfPhcbPIY28SXfQ== X-Received: by 2002:ac2:55a3:: with SMTP id y3mr6602659lfg.108.1573218100653; Fri, 08 Nov 2019 05:01:40 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id d28sm2454725lfn.33.2019.11.08.05.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 05:01:40 -0800 (PST) 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 , Rasmus Villemoes Subject: [PATCH v4 10/47] soc: fsl: qe: remove pointless sysfs registration in qe_ic.c Date: Fri, 8 Nov 2019 14:00:46 +0100 Message-Id: <20191108130123.6839-11-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108130123.6839-1-linux@rasmusvillemoes.dk> References: <20191108130123.6839-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 4b03060d8079..f170926ce4d1 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -474,34 +474,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