From patchwork Fri Feb 20 13:04:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 5855861 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3EE6F9F373 for ; Fri, 20 Feb 2015 13:05:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 74DFB20377 for ; Fri, 20 Feb 2015 13:05:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 52CD52037C for ; Fri, 20 Feb 2015 13:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754369AbbBTNF1 (ORCPT ); Fri, 20 Feb 2015 08:05:27 -0500 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:40903 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754351AbbBTNFY (ORCPT ); Fri, 20 Feb 2015 08:05:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1424437524; x=1455973524; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=wnuPol2enLq7kP2DS/QkN7qjcVfzGQ0YAKzdmkHvlhs=; b=ttMo4GUyDDthlCHiZFDcComW8vSfNJdgdrANJqGRv9jjvnJD4kW6D+A+ BXdeJRJ8vOMfRgWNAMi/sEYXUieR63y2IwJ+ucwIg+x11YRCEomBBs6hD UuGFXXv6Nqq0UH+OY0DRsJm9nOaKBwHE+yrjAEm6yfunSU7qaZ1Ymq5Vo I=; X-IronPort-AV: E=McAfee;i="5600,1067,7717"; a="83549080" Received: from ironmsg01-lv.qualcomm.com ([10.47.202.180]) by sabertooth01.qualcomm.com with ESMTP; 20 Feb 2015 05:05:23 -0800 X-IronPort-AV: E=Sophos;i="5.09,614,1418112000"; d="scan'208";a="32428973" Received: from nasanexm01b.na.qualcomm.com ([10.85.0.82]) by ironmsg01-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 20 Feb 2015 05:05:23 -0800 Received: from APHYDEXM01E.ap.qualcomm.com (10.252.127.13) by NASANEXM01B.na.qualcomm.com (10.85.0.82) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 20 Feb 2015 05:05:22 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by APHYDEXM01E.ap.qualcomm.com (10.252.127.13) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 20 Feb 2015 05:05:13 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Fri, 20 Feb 2015 18:35:04 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 2/3] ath10k: fix wrong symlink name on error path Date: Fri, 20 Feb 2015 18:34:11 +0530 Message-ID: <1424437452-28161-2-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424437452-28161-1-git-send-email-rmanohar@qti.qualcomm.com> References: <1424437452-28161-1-git-send-email-rmanohar@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01B.na.qualcomm.com (10.85.0.82) To APHYDEXM01E.ap.qualcomm.com (10.252.127.13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,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 Wrong symlink name is used on error path of thermal registration and also correcting the error message. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath10k/thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 8992c17..7c54bb1 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -243,7 +243,7 @@ int ath10k_thermal_register(struct ath10k *ar) ret = sysfs_create_link(&ar->dev->kobj, &cdev->device.kobj, "cooling_device"); if (ret) { - ath10k_err(ar, "failed to create thermal symlink\n"); + ath10k_err(ar, "failed to create cooling device symlink\n"); goto err_cooling_destroy; } @@ -281,7 +281,7 @@ int ath10k_thermal_register(struct ath10k *ar) err_remove_file: sysfs_remove_file(&ar->dev->kobj, &dev_attr_quiet_period.attr); err_remove_link: - sysfs_remove_link(&ar->dev->kobj, "thermal_sensor"); + sysfs_remove_link(&ar->dev->kobj, "cooling_device"); err_cooling_destroy: thermal_cooling_device_unregister(cdev); return ret;