Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2009742pxf; Fri, 26 Mar 2021 23:54:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykGGV3PMhhnWOU6sNLT+Cxh/+CDkLTxelutbe9NFmAXTCcNa347Pix7ctm7W/ZhgqmGLnr X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr18611183edc.22.1616828090356; Fri, 26 Mar 2021 23:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828090; cv=none; d=google.com; s=arc-20160816; b=qhiRl8e9YJBol9ej+ekmGKkiICWQoQeFyXO1xKvot4ia8GUmYlbkY++H3t1tvxGLg1 vyyWPIhgRYZNo65hyXvH89+nHekLO7rEHoNGp+v6i8MlC3dg9N/ASnZkk+EFWbANJ/LW wo8K6nb0sBsqbCQWxi8tcktoFI5HS7HDlrNyGpgFu9MLMRei9l018Cuai4nXUGtEs8tU f7BQVmd6iL+0I1p3aK9lBEruQ2yNy+HtMvTVXpubZyneDA7XbstmdEmQpjk5v0VhpHWA oNzQKoyDJ3j3J2tJJMQmvlBaLtWlRomtm+VNI6T8JdbjUDAwlDGf0B7PCL51EpwvKPtJ 7R2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XduZHHNau+pscu4S2+S3FdpvleA+TynZg8lTUYBbj3k=; b=KMpMD1MyCXgHEoHZIrkm/BSlDO0xxyNQIvpnDmWlsAyKtgGGAdlneuQVcPuAEWKeCs iL2Id7IDI32pUAWYovPScBqWuuS6WJXrzdH2F7fe6jB+tg5ZYZP0gBiLA0Yn6HzxTsNJ HeIU3sjzUs+UbjH/siqbBwPpvznCz97Xd018q3tWXoK3sa1J3it6cVgFlSKOwrkB0PJ5 ZYh8R9G43BVPGgnTgKqCaqiFCS1KXpvi9SOSGZHSiMuleJUY3rEYILQzr3dhTyZXKb1B VFQ/rdBHJU7KbLzUyd3xG/fXglzwyfYxyhzME958de7RpnKupBtqFrvL/b/15KYcj2NK Uv1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js6si8856294ejc.497.2021.03.26.23.54.28; Fri, 26 Mar 2021 23:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbhC0Go1 (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:27 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15331 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbhC0GoB (ORCPT ); Sat, 27 Mar 2021 02:44:01 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4m0Qtnz93nR; Sat, 27 Mar 2021 14:41:44 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:43:38 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 13/15] ACPI: device_pm: fix some coding style issues Date: Sat, 27 Mar 2021 14:40:54 +0800 Message-ID: <1616827256-51840-14-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> References: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/device_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 0961537..16c0fe8 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c @@ -966,6 +966,7 @@ EXPORT_SYMBOL_GPL(acpi_dev_resume); int acpi_subsys_runtime_suspend(struct device *dev) { int ret = pm_generic_runtime_suspend(dev); + return ret ? ret : acpi_dev_suspend(dev, true); } EXPORT_SYMBOL_GPL(acpi_subsys_runtime_suspend); @@ -980,6 +981,7 @@ EXPORT_SYMBOL_GPL(acpi_subsys_runtime_suspend); int acpi_subsys_runtime_resume(struct device *dev) { int ret = acpi_dev_resume(dev); + return ret ? ret : pm_generic_runtime_resume(dev); } EXPORT_SYMBOL_GPL(acpi_subsys_runtime_resume); @@ -1171,6 +1173,7 @@ EXPORT_SYMBOL_GPL(acpi_subsys_freeze); int acpi_subsys_restore_early(struct device *dev) { int ret = acpi_dev_resume(dev); + return ret ? ret : pm_generic_restore_early(dev); } EXPORT_SYMBOL_GPL(acpi_subsys_restore_early); -- 2.8.1