From patchwork Wed Sep 25 20:23:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 2944191 Return-Path: X-Original-To: patchwork-linux-acpi@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 22BE29F289 for ; Wed, 25 Sep 2013 20:24:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DC952056A for ; Wed, 25 Sep 2013 20:24:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5656B2038B for ; Wed, 25 Sep 2013 20:24:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754919Ab3IYUYG (ORCPT ); Wed, 25 Sep 2013 16:24:06 -0400 Received: from mail-ye0-f179.google.com ([209.85.213.179]:47383 "EHLO mail-ye0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755065Ab3IYUXP (ORCPT ); Wed, 25 Sep 2013 16:23:15 -0400 Received: by mail-ye0-f179.google.com with SMTP id r6so83807yen.38 for ; Wed, 25 Sep 2013 13:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=nN3Ck4Ja11H0/bUfOwanGjEWG4xNvxKaEsnXfrVoCEw=; b=E39+6OWKNYoJsy9xvCTtlrcb2GkdGG9pSwgaUKgFvs3v/HYUZpIuJFqKHDe4hAsAHg 7vDyT6MLzaOaUFGfa3LfCBnyq2v6t7EPbkh5jdVTXiDMGjwx5nkycUjDDioakzEYcF3u a3ibzxY/o3GjknnSPfC2hoMOpSfstS7FAoRB5n6rVZ6Tz7Iir/+vJpbVGoeFx5uZeqLg ozLss9BRBKSykO/qc+pvr6zzxdUB6OMvEUjeT+Ftx6bhS9+R6XO9O+eNIsY5RxICVki5 7jazVAn7pn9hVfkHnXmU+roefc0zq+ih1Z4kzTyhDAvcpcU/NqGOIaEryX6KYr7L/o3Q bbkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=nN3Ck4Ja11H0/bUfOwanGjEWG4xNvxKaEsnXfrVoCEw=; b=AcFCCs0z0WleqgMOz/HF+ITYfvqv/3ysgby7YwPPuZZB+NK2C3SvCTrVLvfoklDEun J+7chf50rw4ZdCIfoh95sB6wR8Y44YiQuvpXQZBpYt4cQ5jTDZGDp6b6O7vkb0dtunsf OB2H0otlpumFeZ8YL1vivzYSUKcNNBksE6quGDn5pX+bSmnSRBjKrKYXoeJGs/fu2D8A X/e+tuqbvz1Un190vNMLYi95hawdoYJW2HI0GtpWyagfFCp8/Mf7eCnA8AJy2x1WxVAP qLP6S2uKrH65v+XZzCtgE2xMfd4jQooQGP9YLy8kOzrHMdOkM7jtTJWtvS4b7tD+RgEL K+FA== X-Gm-Message-State: ALoCoQmP6VxqZZQ7Evr9jhDfE03racJB5XQavF79K9ny1f4uyEuUT/kSgjQKAiZkjFPgZC+94lXCumKjUGq2KexwnQvYMfwU9tPtUTLdkVx1yc7mk9GTspx46BnX4ILwBDluQJsPqbBVORygi2BcCybdearoOf1+HM+nkKKGj4gNlw8HnYI1wWdNbImqOEgrEtS4zckup5EXnAGmVxksUB6g6xmT738UrA== X-Received: by 10.236.203.2 with SMTP id e2mr7981474yho.60.1380140594783; Wed, 25 Sep 2013 13:23:14 -0700 (PDT) Received: from localhost ([172.16.50.208]) by mx.google.com with ESMTPSA id t31sm56450382yhp.13.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 25 Sep 2013 13:23:14 -0700 (PDT) Subject: [PATCH 2/3] ACPI / hotplug: Don't set kobject parent pointer explicitly To: "Rafael J. Wysocki" , Len Brown From: Bjorn Helgaas Cc: linux-acpi@vger.kernel.org Date: Wed, 25 Sep 2013 14:23:12 -0600 Message-ID: <20130925202312.18667.49960.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20130925202037.18667.31220.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <20130925202037.18667.31220.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, 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 kobject_add() sets the parent pointer, so we don't need to do it explicitly. Signed-off-by: Bjorn Helgaas --- drivers/acpi/sysfs.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index ea68583..7543281 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -764,7 +764,6 @@ void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug, kobject_init(&hotplug->kobj, &acpi_hotplug_profile_ktype); - hotplug->kobj.parent = hotplug_kobj; error = kobject_add(&hotplug->kobj, hotplug_kobj, "%s", name); if (error) goto err_out;