From patchwork Mon Apr 22 19:13:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel G X-Patchwork-Id: 10912023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B5001575 for ; Tue, 23 Apr 2019 07:13:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67921287F2 for ; Tue, 23 Apr 2019 07:13:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B6BA287FB; Tue, 23 Apr 2019 07:13:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 21BC7287F9 for ; Tue, 23 Apr 2019 07:13:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9DE50888; Tue, 23 Apr 2019 08:34:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9DE50888 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556001310; bh=zNWi89LMALgIOci2crznxihU1qMdNgaGPbu/1F70ykU=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=uu8stP1UU7s+9Q/ZVflH3kREVvbY0fr3ZoDiAs2EVuTjnSBX3eghniQx8xiKtmzVs vE6Emz1woMJlXa29JezTXIH6uyWYafEMIVQGcUFzx5gv1UsO7C4Bt8jtyvtfKbr4zm HEEj0d32pOxhsD36pGpWzzODMiOlz5p3v5aR6vP8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1F274F89725; Tue, 23 Apr 2019 08:32:10 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 66461F896DF; Mon, 22 Apr 2019 21:14:02 +0200 (CEST) Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 05427F80730 for ; Mon, 22 Apr 2019 21:13:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 05427F80730 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gyaXf125" Received: by mail-lj1-x244.google.com with SMTP id h21so11202922ljk.13 for ; Mon, 22 Apr 2019 12:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ID+pBqGmkDyUInyz2O2XDy0yzpGb8k+Ls5HJtt9ttjU=; b=gyaXf125l7NQOD/0gSIK1XNEvXBhU6HkRDNmL5FGqvEkixBC2VqHFFWeH7MwalRAlE PbgVp/NpXkyjb3tQPvVtEzNP1nMB5NXJ+I6v16cFE2zWQONUqlAprPfql8yDZxFUHSJt h0U9J326aBeDAxl5OVnrvj1PemzV2lbLqhijgrDN2Yl4sNfdmYK1sGNL5nSlrsa5Plv6 JEjvMtQ5WogUw71pbUjBGegachdRF2oGKInvv+gLdEL6SGqdU7QswVsGvN/ongrXThGu RrQMukLS+nE60M2DHJ/oJHezhE5tm+0i1Xy5qYLFu7xY/8ZyIPgTyjt2HTv7A16Ipz4r +nog== 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=ID+pBqGmkDyUInyz2O2XDy0yzpGb8k+Ls5HJtt9ttjU=; b=qPjfsby5MvPsYEocexcV8xJ9irbAUQe0Xu5h9e+LCUTIgMDilBLzmcov8wssgL5fQ1 KyWCnvjzAVnTDeVQQX+3JS4ZftMSYLZuumJGx/ZpO3NvL7/cs0yrXvUmuzYRcTNMAhJb 7XakrqU3ze80CXmhyrbdA4CTz5FA6lB6HQ1hjq4RKSdRus9hZQlrAr6/O5A3cfZC/SYn 6e8zbqlkKNJXsfiAfsnI6u3TXG+mTq9eCumwrX7pGA8HkCBMa0TzRtWKhjMgHbhZt/+k bRC4Q7CmWOa4iNb5n8GLhjXl6p8ws/sAh2XSFaQHtaiSxPilqwrF5BFup8Ml/QvgxH3G jKfg== X-Gm-Message-State: APjAAAWCvuQsOBKWZy/dL4PCfz7D0m85Gmz/jh5XleaxDwCwCGiBkwYJ wmHIGw2vce44bZl/cY5LGCM= X-Google-Smtp-Source: APXvYqycV4UIXMgpuOvgZAl7VuQq3N4+hzN4U0ficVpfyk4LbUyPkJaeoKgbfb0l90DY1oWaH3g3NA== X-Received: by 2002:a2e:960b:: with SMTP id v11mr10977855ljh.135.1555960437861; Mon, 22 Apr 2019 12:13:57 -0700 (PDT) Received: from localhost.localdomain (80-167-223-88-cable.dk.customer.tdc.net. [80.167.223.88]) by smtp.gmail.com with ESMTPSA id z17sm2832030lja.26.2019.04.22.12.13.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Apr 2019 12:13:57 -0700 (PDT) From: Daniel Gomez To: ckeepax@opensource.cirrus.com, rf@opensource.cirrus.com, lee.jones@linaro.org Date: Mon, 22 Apr 2019 21:13:50 +0200 Message-Id: <1555960430-8899-1-git-send-email-dagmcr@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Tue, 23 Apr 2019 08:32:00 +0200 Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, javier@dowhile0.org, dagmcr@gmail.com Subject: [alsa-devel] [PATCH] spi: Madera codecs: add missing of table registration X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP MODULE_DEVICE_TABLE(of, should be called to complete DT OF mathing mechanism and register it. Before this patch: modinfo drivers/mfd/madera-spi.ko | grep alias alias: spi:wm1840 alias: spi:cs47l91 alias: spi:cs47l90 alias: spi:cs47l85 alias: spi:cs47l35 After this patch: modinfo drivers/mfd/madera-spi.ko | grep alias alias: spi:wm1840 alias: spi:cs47l91 alias: spi:cs47l90 alias: spi:cs47l85 alias: spi:cs47l35 alias: of:N*T*Ccirrus,wm1840C* alias: of:N*T*Ccirrus,wm1840 alias: of:N*T*Ccirrus,cs47l91C* alias: of:N*T*Ccirrus,cs47l91 alias: of:N*T*Ccirrus,cs47l90C* alias: of:N*T*Ccirrus,cs47l90 alias: of:N*T*Ccirrus,cs47l85C* alias: of:N*T*Ccirrus,cs47l85 alias: of:N*T*Ccirrus,cs47l35C* alias: of:N*T*Ccirrus,cs47l35 Reported-by: Javier Martinez Canillas Signed-off-by: Daniel Gomez --- drivers/mfd/madera-spi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/madera-spi.c b/drivers/mfd/madera-spi.c index 4c398b2..1128584 100644 --- a/drivers/mfd/madera-spi.c +++ b/drivers/mfd/madera-spi.c @@ -121,6 +121,16 @@ static const struct spi_device_id madera_spi_ids[] = { }; MODULE_DEVICE_TABLE(spi, madera_spi_ids); +const struct of_device_id madera_of_match[] = { + { .compatible = "cirrus,cs47l35", .data = (void *)CS47L35 }, + { .compatible = "cirrus,cs47l85", .data = (void *)CS47L85 }, + { .compatible = "cirrus,cs47l90", .data = (void *)CS47L90 }, + { .compatible = "cirrus,cs47l91", .data = (void *)CS47L91 }, + { .compatible = "cirrus,wm1840", .data = (void *)WM1840 }, + {} +}; +MODULE_DEVICE_TABLE(of, madera_of_match); + static struct spi_driver madera_spi_driver = { .driver = { .name = "madera",