Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3352053imm; Mon, 4 Jun 2018 02:00:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJz9vdEsGMpW6txAT1nFJinye3ccwxErfhjRCRlrW5s+SHhRDAl0ABV71N8GqjSJIGV3Qt0 X-Received: by 2002:a17:902:bd95:: with SMTP id q21-v6mr20343094pls.237.1528102847594; Mon, 04 Jun 2018 02:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528102847; cv=none; d=google.com; s=arc-20160816; b=FuKj+MQBkU98qimDopwHIcl4+oVyWS4MRg4aaldIcM7eKMFEcjeYNcJeoGRQfh91o6 pYPvt24YzX/xkPV/7EtpGEQoabMso5PI7sRcFW+xW37RkdUAMczybMFVW+itV5Ae8Aws fzobbr1ElM52n34exaUcVNq5ReJHhrEkj7ujq6jiLadjNcgCpxjHdx/JeSwPbk1y5f7S GcrIQmOEfKlyFE1P1xY1hq326LTmR1jWHg7fgUsp7Fi2IeWtrYrH5v0N34Jb5HaMYzGM 5EK4BiK88uh7QsAu+Orzc58lJUAPSrJw/XXWjoEU44d5tKk/crhgvO6pf34tRpkLJxqw +z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=WPkv5tyezruKrrtBER6icVonPZ76PLBLXkQM8fSrieU=; b=AF/0e+s7eKTarXTAi6AvzBZqNMcWJBO3bi9X5sIlsgvyFfqmGIO/mlQh8vOFUS136L GzhK0Y+7mV4oclk+OkpmI8LNLR11bamCo35DIKklWo9AzIvxy2zpyEYfnc0X4da0qJe+ ca/67jY0x75iiHw5zhnrnTbjyv2md3Vxda4moJSkjz9hWHvZgKRynJpwBD/Rs4efO4Lr n6pl+K6TpNmgZHWo+ttFcA+xaE3f8dusZTsza8z3L87wmMzAWV0t89Uy0LL8CuMa2b+b /rQkz9bv1cNgdz+3VO2EbIxydU2CTxfJ1oKOEODRUVbcZAlJArfVJ6UqEXPY6tGmS9JZ DehA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f+0orfQS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17-v6si44666138plo.355.2018.06.04.02.00.32; Mon, 04 Jun 2018 02:00:47 -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=@linaro.org header.s=google header.b=f+0orfQS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbeFDJAB (ORCPT + 99 others); Mon, 4 Jun 2018 05:00:01 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34093 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeFDJAA (ORCPT ); Mon, 4 Jun 2018 05:00:00 -0400 Received: by mail-wm0-f65.google.com with SMTP id q4-v6so14417048wmq.1 for ; Mon, 04 Jun 2018 02:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=WPkv5tyezruKrrtBER6icVonPZ76PLBLXkQM8fSrieU=; b=f+0orfQSZ8guOxdAb8FRsWMQgFa/HoX9SDoFUAsujxlLpnuOgNlttBudx/AVYlvTHm 5q4qFTDrpMsIoj93eaRWMiSSqoz0AovFbrzHJ46ij6nNzQBYZQ9k8w064O1RZzQiOnVl 8YAcS/RrJBw/y2raiYn19PnYaK3mhIcdeEPhU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=WPkv5tyezruKrrtBER6icVonPZ76PLBLXkQM8fSrieU=; b=GTZRMyhsH7d8c6/sksTUwr8+GhOrcIOX2JtFX98Je3MHI3UlPng0kiEBK+aKyg6wcE 9KEjvUPh+HdEpNuqjkZbWOGCH7fmi5AqCh/MYQf5T9DMNT+hsMYKBKKrWLDg4qwYocNM 86ttGiA6Z7LvgwTrBftghIpPU6KHhMwRLlfhYIBkmcBqeuIBk9eYDtHUqWS73BPzKhu+ Xc58OapJM6PcxngmQC9VG0TlRtXs/UfujMpusE/wyC1Pe1G5aXyQHbGeoQWodXmdof27 PfCZDzwxBHVsdcS0rp/oGfB1mu7JnRV1Dtbt51WVhIU87H+NfjKPvjg0xEUyZgvQ6vWI Vo7A== X-Gm-Message-State: APt69E18cSV6pn2QdjOAdX01z5Ym1l+E39BiAZlao8Fh4nBSxGkQdkOV NlCvdUcmv6KNySRGHmUb7WwxIg== X-Received: by 2002:a1c:8301:: with SMTP id f1-v6mr4946571wmd.17.1528102799463; Mon, 04 Jun 2018 01:59:59 -0700 (PDT) Received: from dell ([2.31.167.234]) by smtp.gmail.com with ESMTPSA id o2-v6sm7966400wmo.24.2018.06.04.01.59.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 01:59:58 -0700 (PDT) Date: Mon, 4 Jun 2018 09:59:57 +0100 From: Lee Jones To: Robert Jarzmik Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: wm97xx-core: platform data can be NULL Message-ID: <20180604085957.GO25455@dell> References: <20180603201617.15805-1-robert.jarzmik@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180603201617.15805-1-robert.jarzmik@free.fr> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 03 Jun 2018, Robert Jarzmik wrote: > It is not mandatory that platform data is passed along the ac97 > codec. Actually there are configuration without a battery connected to > the ADC of the codec. > > This is for example the case for the PXA zylonite platform, so fix the > NULL dereferencing by adding a test. > > Fixes: a5c6951c49fb ("mfd: wm97xx-core: core support for wm97xx Codec") > Signed-off-by: Robert Jarzmik > --- > drivers/mfd/wm97xx-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog