Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2249605imd; Fri, 2 Nov 2018 08:18:24 -0700 (PDT) X-Google-Smtp-Source: AJdET5eZYqEQdhZmIF2Bxzvngbzthwe5K/LW2jWeN/fdbA+LJEdQ0fKw8UlAdv6TQ36w+tkEKknn X-Received: by 2002:a63:c24c:: with SMTP id l12mr11371352pgg.146.1541171904484; Fri, 02 Nov 2018 08:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541171904; cv=none; d=google.com; s=arc-20160816; b=H0PK5BkDqYvgJEWichF1EZyI6eQBojkoKwNNOVZsrkkBXrxIL/j+oL+o3bKVWa+9nb iW+7IN+14CsZM9NASJzdoSZ3cCDUWrG+za/Ufuhn9wFivL8fnynkR3f905B2PnSS/EXd 6yQe9ZJWPKxDjTUh6SVFXVGG8nt1ULFLgTLJdBTjF9PRcFvyH3cRDDfepLlHmT7Q/L6x NnpMTAgBEdpipmSi6BldTnTTLb+GHqMLEWsM6v4/wT7oHrUJ/CztZ/vlkeBWotQTvMBl m6zB6rIvaEKzGwLpt/hGivAcBuMTCFW+0i1gpf8cpQ+clOOXj0uihXnfVZkncHoQkADZ bQkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=EvNTaNiSav0a9d3Jmf5cZ6t42xssfwWNmINzcM45CIM=; b=kvEP6WECG439UMk8cy5QroWC5I2QAEii5U+D4Wbpi1OYOurXumMJJmvkfsyO84L/oo N1xs6iVvI1cIMXf7Rn0UQw23plyIg5OndJ8/cq6bF+T6VAvt/rrCP7DFFiVA8lGIvaCg cSkL6XZqpaQ7ofxD2UW9cvjDvAkP3yR8bP8K1turCQQLLIs7qxd0Uk4p66FHzbj4ETL+ JZnsK+HiAguvFzlq9HoLIo3/Cur+XMom9uSRgaZiSRE15ZSFBiciS0gSC0f3hJ+rLazY hJ7t9R5zqAY3ubMxFAaXI+uUaPy4JB/rvmQBzfhvwsf85lOxSD4id61HsMqjesVqEZGb 0zgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lYei1ZQW; 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 d9si2770801pgb.105.2018.11.02.08.18.09; Fri, 02 Nov 2018 08:18:24 -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=fail header.i=@gmail.com header.s=20161025 header.b=lYei1ZQW; 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 S1727996AbeKCAXP (ORCPT + 99 others); Fri, 2 Nov 2018 20:23:15 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:41122 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbeKCAXP (ORCPT ); Fri, 2 Nov 2018 20:23:15 -0400 Received: by mail-qk1-f195.google.com with SMTP id 189so3543079qkj.8 for ; Fri, 02 Nov 2018 08:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EvNTaNiSav0a9d3Jmf5cZ6t42xssfwWNmINzcM45CIM=; b=lYei1ZQWUgkSfXqDocfa68cGxGY3YyZ0zyE77zxOZOpF4mlFb6m+xK17CDFKOjYyDF DJMsdG4AyoL8BvQB7ncP39Prr75jjvAm51vKvKakYcXUL/W/uHHDWVLHu8IihZBTZCWA WWmqEhzOwqSeH5BTXnpPei3vE1WaTPD/xpmPrX53ecuhM3m5wyDkaNtPy5+hASsjJ3ho t2Kfq/dalnaeTRYmck7TiDXQ9s+U3WEngh1lko4uosto5FSsYGV2uY7dvt/yAzcDnB+g GYCr4a2LmUPLL/U5ApWcvDZgbxmiH5SQLb/WPauzG8mDwOYHBjWtYKLzIu0uT1Z83ha5 2hpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=EvNTaNiSav0a9d3Jmf5cZ6t42xssfwWNmINzcM45CIM=; b=p+3r6+3e47h5Z3NxvFsvOIyH4GwWQSB3mwlFVneWt1ZCa655ltYOyrvpwliWL4HOIr C4dt/cxnGdOinv3kKhKfBNc4JOorVFn7przSRneMRPTrDGFKeoq+5K7EPnhJOn3HB9r7 49BSYNf4nZrCNwnFHlgb6paqQuyTTnkYi183ykYMGNWVXQEzToKiyvS1V02BxebtGSHn u932VCUzg5z6CkMYwMkCI+gKgr+r5eIjFMJrbZ7LOTeWGhhj+026zfEXMF45wxXnYyUH ZFI7+Bc2KCmbVeSb0F+uGI3OtMhm1iYKpGzbMD1WZ4lKZdLYMHzwx9HBt6sQADQNfcmB U7aw== X-Gm-Message-State: AGRZ1gIU5pgk/j7FnLIlzB8YAfJWkfm3WkcFGyFTqowZgZmdIk3GfvL7 yD+4A4USwy0WiiGoXZligVQ789LkUVdH5WpdILk= X-Received: by 2002:a0c:e202:: with SMTP id q2mr10921615qvl.180.1541171749897; Fri, 02 Nov 2018 08:15:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9881:0:0:0:0:0 with HTTP; Fri, 2 Nov 2018 08:15:48 -0700 (PDT) In-Reply-To: <20181102143817.GP16508@imbe.wolfsonmicro.main> References: <20181102112341.753642-1-arnd@arndb.de> <20181102143817.GP16508@imbe.wolfsonmicro.main> From: Arnd Bergmann Date: Fri, 2 Nov 2018 16:15:48 +0100 X-Google-Sender-Auth: QGY0p8kJzZxYfavL9Kh4MVcu4fI Message-ID: Subject: Re: [PATCH] ASoC: wm97xx: fix uninitialized regmap pointer problem To: Charles Keepax Cc: Jaroslav Kysela , Takashi Iwai , Robert Jarzmik , Liam Girdwood , Mark Brown , Kuninori Morimoto , Fabio Estevam , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/18, Charles Keepax wrote: > On Fri, Nov 02, 2018 at 12:23:08PM +0100, Arnd Bergmann wrote: >> static void wm9713_soc_remove(struct snd_soc_component *component) >> { >> -#ifdef CONFIG_SND_SOC_AC97_BUS >> struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); >> >> - if (!wm9713->mfd_pdata) { >> + if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS)) { > > Should this one not also have an && !wm9713->mfd_pdata? Right, good catch!. I'll send a fixed version in a bit. Arnd