Received: by 10.213.65.68 with SMTP id h4csp224904imn; Tue, 20 Mar 2018 01:42:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELvHeSaGPm025tI/duZRVk1gKuJWGmX02syO/mAU3NJzAbPYqbdFrOgH1nwPRiN6+miZE4mt X-Received: by 10.101.88.76 with SMTP id s12mr11516498pgr.423.1521535365416; Tue, 20 Mar 2018 01:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521535365; cv=none; d=google.com; s=arc-20160816; b=dQA02n+6Ba18PoJmARc1BwHdwzRa6s5cVVYxYF+K/cWt/dsinM8uzX7Pphz3MWJwtC oVJRK0MAdy5f4upOWMozHbDM20m5UGwtSX0DglFpkHcTOc84Qi3k7tbm/G9keruIlxDD AvZcbznzubuy27tYJuW9G9YeBceWJzyM7MeY0WSbsaOciWpjqojRbAiuNecsDs0ZaHXw 13c6SPrDoNW641DOmhJ1gY231Jl+6Vt1pxRI6mYsVFyg0DtYtWADMTmFKbzrn1cjomCx M+jQeNWGMqsC7yEYuPpC6mVxtoyR/0DJp8IV6Hl206HuyiYcafPvKEixzlzwPlJGdpWt bEhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Oq2MAVulZdq6Q4PN9H1MAHeeIqRYyR95BY+tIONSUFM=; b=kAB499n2m3ZWoelRDCRm/Z+MY2cSXxUm7m9tqVeKJ80T6NN96tq/YAfKzi3BIfak9j GQpV2dRAnY5DYW+5vzBbDsvf2gzE7PWAzMMJfAwqz20hpHzj+vdaXWDNABAyuMOTAjj1 r3sKQLYl+72vCMHjnUF05MrNcE+hJ7lQwcOknyy+uCXEPE0nHR4wpiET8Uuocaj9samn M0/dyoOF78NcjuYxN8vxSGiFsd87RxA+a5M5QlLJmIyMNQZGqhgQlwSDkNnTLLL9CqX1 eAds3yMoX3183bRYAFwHwnklt1xbZp/zjkRV0oXrCVdLvXQLKZiE76Jyf9uI2DtIu0B6 a1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=1x3UtKSO; 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 3-v6si1200645plt.124.2018.03.20.01.42.28; Tue, 20 Mar 2018 01:42:45 -0700 (PDT) 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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=1x3UtKSO; 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 S1752249AbeCTIl3 (ORCPT + 99 others); Tue, 20 Mar 2018 04:41:29 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:43242 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeCTIlZ (ORCPT ); Tue, 20 Mar 2018 04:41:25 -0400 Received: by mail-lf0-f68.google.com with SMTP id v207-v6so1212166lfa.10 for ; Tue, 20 Mar 2018 01:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Oq2MAVulZdq6Q4PN9H1MAHeeIqRYyR95BY+tIONSUFM=; b=1x3UtKSO5iFEV1TVY4/iZGsOUayGw34OUcUXVAH0L0X+qKa6sAiTAO3b1BCGVOGi6w 4Xv+Deyn2txy8DPandrmBVa3AJmPmBUPvhaoHssya8doskbWTa3zgWZoYw6IxQR0T8we HPRQWkX71V7IxE2FG4e6vOwGD9xtpcMk4qKqWG+KaONbmdm6ZnzH+G2svIPAnj4OkRjN ZzzrAZ2biEta8tT5b0moN/wiAju6YcOY1QAV4i/gM/Lu3QRgSIRKTJrYMW1jyS6ilvEd 1lrdWYwKYlZusP49L63kgVYPWgd9weg8Miw6iGJP+I4QeWzoWLpqgFnKu4BTFS/vk/vG 7TYw== 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; bh=Oq2MAVulZdq6Q4PN9H1MAHeeIqRYyR95BY+tIONSUFM=; b=lYHccgWkcxX+FVhzumxzxpADcDMc0YwV7MqwsJbQLP35bRaDzyTMefzrAMRFC/ctoW Fnth2H+2U39SOlvbpBL2ieuZHVJS7ibM526kMaM7BLiFKfQDq+zkFMH1tNXg7IdgXNh0 r9Vgngc39t4YydBjopwZPksZUTX5BO0yfOOin7KmePqcoiP5Uln6YWHlT68bkb7f8Oq1 xRmuj827vqOfx3XaN/8BbSpl3RrjM/Wiy/5Zql2mal/xE6vSt+cIENf51m4XEIYwFyV6 9lQc7nf5mtiOQA81CsxrgbbWjQJV0bClVROyAFYk+fpERWBRj2ejA2+5NEWPqsGDdXrU YuAg== X-Gm-Message-State: AElRT7FCtYfne5jfDw6YP3fjP667UTXKr54o9TRGB0+vUhGzb5cKRphB wZYkYXRFpES5AeLu1gtODpuugg== X-Received: by 10.46.133.135 with SMTP id b7mr8893731lji.41.1521535284590; Tue, 20 Mar 2018 01:41:24 -0700 (PDT) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id j73sm256112ljb.57.2018.03.20.01.41.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 01:41:23 -0700 (PDT) From: Nikita Yushchenko To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Bhumika Goyal , Arvind Yadav Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Nikita Yushchenko Subject: [PATCH] ASoC: rsnd: set pm_ops in hibernate-compatible way Date: Tue, 20 Mar 2018 11:41:15 +0300 Message-Id: <20180320084115.23880-1-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use SET_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to .suspend and .resume fields. This makes driver working after restore from hibernation. Signed-off-by: Nikita Yushchenko --- sound/soc/sh/rcar/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 64d5ecb86528..dabf9a35c25c 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1560,8 +1560,7 @@ static int rsnd_resume(struct device *dev) } static const struct dev_pm_ops rsnd_pm_ops = { - .suspend = rsnd_suspend, - .resume = rsnd_resume, + SET_SYSTEM_SLEEP_PM_OPS(rsnd_suspend, rsnd_resume) }; static struct platform_driver rsnd_driver = { -- 2.11.0