Received: by 10.223.164.202 with SMTP id h10csp2971908wrb; Fri, 24 Nov 2017 22:41:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMYs+XDyJ2F4nE1GSgkZzwFIOueJxbsV0M5MOGg0pIxEok1s6tLy/U/hqm901jY2pN3zDUm1 X-Received: by 10.99.112.69 with SMTP id a5mr30186290pgn.179.1511592071063; Fri, 24 Nov 2017 22:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511592071; cv=none; d=google.com; s=arc-20160816; b=yxHlsBY5GkrC6CT6HYIc3yXQb9+C93FFscHwJrVccYQSUqDI+qwj2vP1X/op85U2IL 4rHjsR2JY2sIizcTBc9wPndLnIxd8N2NqVuoE7whjWoseWUK1BkcHPamNqRmykoW8Htp vvRDpsGP1VE0ET88XxnlEz2CexJ55b1ksojZ4t0iFSVcV4833bIvjSnh8Dt14TPZDYY9 3tYl0EJ09Ox/iMsQ6eV9RxAfDiRxRVPKcyOq2GLhT/KaKj3/2D5HIVjL/09GYDFPsnhB bR7c/QHWH8BTUKwUkw6pAx1YYEiIjdPSQA3bXQpj6UkkaLlvzlqjAJdk4MQoAQQ2Sn8x XFDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=e3JLYC8PW5uVXrOYN6zupIXzhVRyFVNgbX1bhPfJGI8=; b=07QdT9ZW8y13Et/vcxIjMjT7sLVwjvfB7FPCE+kjEtT12eaXhGMKhYYxVu/IK5Up84 NAldRr0OaUtwwScf1tLI43lNyf94nNue0fFBT1SGXwEhYmHIxyuiUCSmtVFMfXfHa2rM tj8sIKDLc2Ew/aAvPkp32GpvAGVsLva6m3iQWmOX3wRPW/5nZugRYn98TYLJhGVxPLVe hJOShvUpMKP4YpT3egmLrHbjJ9Ly6IM8PhW+J3R23A9HxPOKCvEMfaIUHXU11OKqcSxl SwbyC6OnR2pltfMxdTAm0WDCo0jErQITUTGwi1ep/6qKO+Q2bf2JIfKkJU+tFfkKwitI Fayg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WzBoK876; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 88si20050011plf.291.2017.11.24.22.40.55; Fri, 24 Nov 2017 22:41:11 -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=@gmail.com header.s=20161025 header.b=WzBoK876; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751596AbdKYGkH (ORCPT + 78 others); Sat, 25 Nov 2017 01:40:07 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:42437 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbdKYGkE (ORCPT ); Sat, 25 Nov 2017 01:40:04 -0500 Received: by mail-pg0-f67.google.com with SMTP id j16so16510687pgn.9; Fri, 24 Nov 2017 22:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e3JLYC8PW5uVXrOYN6zupIXzhVRyFVNgbX1bhPfJGI8=; b=WzBoK876LwGyyb5+F07WySPQZZXBaVRGWxyYGHrwjZta29R2o8eAGvt2DeU/EYhxlp nTTBLUEuz2T9ZDhHM4CjzfaQfqpwT0LNMKYFn4diD+hMYVjgdAR06L8EfVlnIAIaQJhe YQAS+RDhwln4GQKGAxP80aeBKmdA/DqbEsMIVUdmgCMq+VfsNYdiibQ9/jM+SZ/BDFUF ekgxX5H0EfmUBHwfBLDlQZK5FN/ie4vHBJ2wGHjvqi4YY92wMBn/8bIPSOSF1n11umhf jZGib58Nd9EeZGu42v89NkEeBs1PDdvDNfenjtWjOW0a9EvkLSbImuUkj0KwbBSL6DGQ XV8g== 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; bh=e3JLYC8PW5uVXrOYN6zupIXzhVRyFVNgbX1bhPfJGI8=; b=Y9Unp1lOptAP/d0vvld2VzKjI3FhmhFrQ7T+dy7zU2udDx02h4xFpqDh9h96OniRNq kEg/VhAp/8L62vpj5uW6N98gxoY1l9PcPvSdPepx3m2/YxygIQRlOTSBT221URgiNuoY eVE5YNqNXku66FIvgf1du449Balsdx7YxKvzgs2e/ZXPh1PxVv4h6CYpTtEEmmWZZHxW WAcq1E5fksvifLjMVrZdJq8xcF15ug0fzpPdJZHvNBTO5bpC22vv+t6jY6t8gYTtnLQO +Cu4qdzJ/HzufzxMfzipMCrEAjlCUl7WGrDulleHyHOnrAoAwYYbwL5e1VtviNAu4JIg 8niQ== X-Gm-Message-State: AJaThX5AgrCsV4XOte2bQPqsx87yf7jFRhkjeYnchynssOpkBRzr3SEI txjshU/7EybuG3XPGkZqRDM= X-Received: by 10.99.111.139 with SMTP id k133mr10584557pgc.332.1511592003961; Fri, 24 Nov 2017 22:40:03 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id 62sm34027939pgh.31.2017.11.24.22.40.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Nov 2017 22:40:03 -0800 (PST) From: Arvind Yadav To: gilad@benyossef.com, gregkh@linuxfoundation.org, oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, paulmck@linux.vnet.ibm.com, vitaly_fertman@xyratex.com, yawei.niu@intel.com Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org Subject: [PATCH 4/4] staging: most: Remove a attribute group from a kobject Date: Sat, 25 Nov 2017 12:09:31 +0530 Message-Id: <1511591971-8615-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All attribute group created during dim2_sysfs_probe() should be removed in dim2_sysfs_destroy(). Signed-off-by: Arvind Yadav --- drivers/staging/most/hdm-dim2/dim2_sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/hdm-dim2/dim2_sysfs.c b/drivers/staging/most/hdm-dim2/dim2_sysfs.c index d8b22f9..c038ff5 100644 --- a/drivers/staging/most/hdm-dim2/dim2_sysfs.c +++ b/drivers/staging/most/hdm-dim2/dim2_sysfs.c @@ -111,5 +111,6 @@ int dim2_sysfs_probe(struct medialb_bus *bus, struct kobject *parent_kobj) void dim2_sysfs_destroy(struct medialb_bus *bus) { + sysfs_remove_group(&bus->kobj_group, &bus_attr_group); kobject_put(&bus->kobj_group); } -- 2.7.4 From 1585306755344046629@xxx Tue Nov 28 10:52:16 +0000 2017 X-GM-THRID: 1585306755344046629 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread