Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1136524yba; Thu, 9 May 2019 11:19:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdtrvgrcm1HGWHdO6oF0/58CWsB9ku1Y32CXM7g7jJpGgABjR3rehu04gUkUTObZKWcNqh X-Received: by 2002:a63:8449:: with SMTP id k70mr7464632pgd.53.1557425949442; Thu, 09 May 2019 11:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557425949; cv=none; d=google.com; s=arc-20160816; b=IyuFINY4q05iXftWnKrgq0XRhvo4C3izFomhSfAMREG7QJN8g7UD7fMOhytBjEiOSl 65inpM8typOtlaQGqLkvWdtGXbRBSr1mLgmxbm5sKlCLWDkQyTkvrdd8JKA/T/ZW4v/p obB/JtJmpX+0jpTNlDciwDDXW0+tmeFXyikiZrAYJK1m3dTciKrkmtazuWKHHHNLbR8E 3OntqtoWgEZbGp4+eBT7umITexG7bgBfhXjs6DCXqdKy5Q4frnqc7g5jZJeD5pvO6Wx9 cxg8zo09MdR0q4uoY8QEBmx3cYo8kKhzgb58U5+aSJN6rj365Ou63UTNpePgQUD9gVgZ rTwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HxtcoPDWC0ufZrnJnCPrEikgsmND9jfYfVByhehXHBY=; b=iCQ9mvHyE20YCJdP+HCCMaC5zUewyaRDDgm7g/PBrVpe5CNa30D8mb6zi66oDj3Jea ZsMHOVeZOSsasg/3Wxt/WbC7Vq3rYAwwMZlEBozVZS/DdAEdXmJKsHDgbT8Yqyj1bpEQ 6ZusiGGAwyqCOs90atJPdFLkWDIazFvaxNbg12Dd0CL6OAijZWNXza5dLYGfefJBhdw5 4U3E1XICS3yiuOiM674PdBhH+BYy4nvh0fvRsvP5356m2lcUy5KOnEcqJcz8AlNtAcxt 6QnDrEG+Fw4q8toLamn8yAApuk8uicTyNgmHMvEEELJY+t6r7LPu57kFZ4N8vedCHQ3H otDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZeXHdBW3; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4008079plz.198.2019.05.09.11.18.51; Thu, 09 May 2019 11:19:09 -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=@chromium.org header.s=google header.b=ZeXHdBW3; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726694AbfEISSA (ORCPT + 99 others); Thu, 9 May 2019 14:18:00 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40883 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbfEISSA (ORCPT ); Thu, 9 May 2019 14:18:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id d31so1615164pgl.7 for ; Thu, 09 May 2019 11:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HxtcoPDWC0ufZrnJnCPrEikgsmND9jfYfVByhehXHBY=; b=ZeXHdBW3JljXP43YRKjboAEyfk6WCudV2frx/3SqauL9A84L2sXrHdlnEgw2D/auAc Sw38NiL/aobwNHbh6YNuoOinZmantk6paxO9u69iwqQlgXEoqu5TWXsVns0OUNqJnxyp 3MRDKTBBnLNje9sp7mlCCLXd6o8xeBFicJbCg= 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:mime-version :content-transfer-encoding; bh=HxtcoPDWC0ufZrnJnCPrEikgsmND9jfYfVByhehXHBY=; b=hWdjeRVHSry6YMyNNcZjeBYqBfExxhBwIp+jcr06yp39XucyqwNWd3As/jkJ3M68LZ g1hbkcJRVBJZ8tLhT4AaQY5guKiKhKJ0yjknbPq0FSF71RSEynPF4jd6wYa3r+jEvjQS +CJO77u2WMHh2vOv8G3mP3bxCI9RWgoJey+apxoFiAToXtn6gcNc6lb0MH3MUyzofz3E tB7aGjK724C91eg+GefvmyBcNpvvIvFl63U6Fw9dn4jKG46v8AXfwPMKsMa8YTQC08dC ZzehZgDp0dI4GF0bSZ6EUuLDLBUd/NGgnGj0vOLcQ54DynzYbIZ1xe60KlHtQDhjmnfZ /6NA== X-Gm-Message-State: APjAAAXJ5O0i3nkgjYF+OF4wGpndBmuSnBUE4vWHMoI/EUa0mma16Ue0 f3dOWci9i6kFlgiZJBBS2SMrzQ== X-Received: by 2002:a62:2703:: with SMTP id n3mr7334160pfn.199.1557425879792; Thu, 09 May 2019 11:17:59 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id l68sm6545207pfb.20.2019.05.09.11.17.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 May 2019 11:17:59 -0700 (PDT) From: Evan Green To: Benson Leung , Enric Balletbo i Serra Cc: Guenter Roeck , Stephen Boyd , Evan Green , linux-kernel@vger.kernel.org Subject: [PATCH] platform/chrome: cros_ec_spi: Always add of_match_table Date: Thu, 9 May 2019 11:17:50 -0700 Message-Id: <20190509181750.134960-1-evgreen@chromium.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Chrome OS EC driver attaches to devices using the of_match_table even when ACPI is the underlying firmware. It does this using the magic PRP0001 ACPI HID, which tells ACPI to go find an OF compatible string under the hood and match on that. The cros_ec_spi driver needs to provide the of_match_table regardless of whether CONFIG_OF is enabled or not, since the table is used by ACPI for PRP0001 devices. Signed-off-by: Evan Green --- drivers/platform/chrome/cros_ec_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec_spi.c b/drivers/platform/chrome/cros_ec_spi.c index ffc38f9d4829..3df315fce60b 100644 --- a/drivers/platform/chrome/cros_ec_spi.c +++ b/drivers/platform/chrome/cros_ec_spi.c @@ -709,7 +709,7 @@ MODULE_DEVICE_TABLE(spi, cros_ec_spi_id); static struct spi_driver cros_ec_driver_spi = { .driver = { .name = "cros-ec-spi", - .of_match_table = of_match_ptr(cros_ec_spi_of_match), + .of_match_table = cros_ec_spi_of_match, .pm = &cros_ec_spi_pm_ops, }, .probe = cros_ec_spi_probe, -- 2.20.1