From patchwork Thu Jan 11 00:50:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13516701 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2110.outbound.protection.outlook.com [40.107.114.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7801838F for ; Thu, 11 Jan 2024 00:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="UlGYeZUc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I2GAzbqwd/B5/R1//QQqrelicli1jCBS8XirEdidvZqJy/WZOQDpgvp64RGsH3P5ua285Y/uxvCSHxFVkHdGPui0od0XguhRl+Z9wO2csfWQSimsf5nCyIJxi/POKbM2UB/ZaP3SLFJVtkPbdtG/Ysm6h7F+a5nCNFNmb4BFvfumKGsaxjyYUDziXKenvPJLoGUfrLEo9JL81mbvE6pPT6w2JIaE7Sw8IC9yVP0otdCgG50Fbfu4F245shf1fvWDqFWr0IGqh+8D2hGbdfaN6TQWGa4YRpEIoYvrnf3MjJeyeaA13iDeImgyRz9bAWe6gAVux26BwQnAcMxp2RWc6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=m9KnUAIMUTNexXDaQxvboXle7/xuaja+Q2Xobv/unSY=; b=B+YKkOORX45pqhdohrlmHcq6vmaiPJFmRCCKZMVeUKQ66KyaaCCbo4gHLWooogZvZIbwdVLpxER3CG6sF3Oheee1Uw9Kb+IV7w8V7R0EoKX6skhYyCA6y2kD4ipcTBqy2+JwnohlM1Q/Tqz6sIVin8fU0xr++KoTkvdd9+tUpOafk43yosb3XKbc5G0ik6+huITclvoHf+Q9fQb+Jc3BUiI9NEvYSnbpC4iJ4hjwFjqQiWbzTeDv5NOtR0YeHDtb37GfCKsSwVT2AqPpeVT4hh7B1Ddqnpm4GXSz9QAeru0zZSMqAh9ZOKMCokShplIxF9u9VmNA1gdnEVX2DlemSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m9KnUAIMUTNexXDaQxvboXle7/xuaja+Q2Xobv/unSY=; b=UlGYeZUcs0wjWbDk/teEEBvTlCiXSUBAysC6kpBCkcS3Me+6nlnEizxfkV7ja827kfGwm5Doi7dzbuKxsB1MtdirxpU1D4VHmYr9SIfiIV//rDzr+9zCY5teALyESNqINIx6hAV99mkW7zAZ5jWvyTxTZR0t9pH2MLSsi4cDceM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB10908.jpnprd01.prod.outlook.com (2603:1096:400:393::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Thu, 11 Jan 2024 00:50:28 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b%7]) with mapi id 15.20.7181.015; Thu, 11 Jan 2024 00:50:27 +0000 Message-ID: <87zfxcwv58.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jarkko Nikula , Jaroslav Kysela , Liam Girdwood , Mark Brown , Peter Ujfalusi , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH v2 1/3] ASoC: ti: use devm_snd_soc_register_card() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 In-Reply-To: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> References: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 11 Jan 2024 00:50:27 +0000 X-ClientProxiedBy: TYAPR01CA0225.jpnprd01.prod.outlook.com (2603:1096:404:11e::21) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10908:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ebce593-74ee-47ff-917a-08dc123f4dcc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Brf4ma2BWLvfugs0LbP+4bDpyScMqbOoZzKsnceyNBMj2yDN4PaRZH2r89mTxHOhtT3aAbJ+lXEA4GHz4kyiiHXiqMkmTZ+qQafHVGVVgshhIITN84mh8NYPb/qI7SOrpRt5WYLUUvW38T58riyahQuvZWWV5Y0LFwQy/kxwDU7ceeX1PMi/klPszchnZoefeXQuFSiwWiQ7P341z/vyMi95majmOZ4A46JxTSlTUQ0pgqxEBqxwHYMYh4UiYaRcNZLCeQkAVqGm7bGGfOj6+RbaWAz98j5+7jdfIJmexOZ4+Fg8UAyg+phMHrlzMNvUwytvmMwIAi0va9quMeulEZd83BuiXjrc+65Af7F2AWJkPVUNMOfSgc3yyd6n82rJRhH6Hz7k7QHT4tD7Newfx9zvmfhJ09QO+uEfsCkby1ixg6mBYl7zBuh6XL2VIpmGP1F9EkGa98I1uTPyIM9bMrhzTc43DY39ahiiNR9i9MG/ycLrcCaaObMm8AEqauMwplWEwo214UbTgsk4sChzSI3n956fLKMI5bO+Cqsy143TU7B/y+9wfG4vOUyFTmNS0kfnIFlJT9mRLz/NEkhO3EFhmBVGDzk+H/k+2ta9/NrIB6uuXyTLrzNqVhs20Bo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(366004)(396003)(346002)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(2616005)(83380400001)(26005)(6512007)(6506007)(52116002)(478600001)(38100700002)(4326008)(2906002)(86362001)(316002)(5660300002)(110136005)(41300700001)(8936002)(6486002)(8676002)(66946007)(66556008)(66476007)(36756003)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /PlhkKiLXQh+x1yYgS8P2Ym0ZZqfzYP/wKWo44GF6fq9yXoTxaGh2AKwDj1RvuRMNUga+UrTVM0NwjgxGgoCsoyBa6l+yIE1hc2ExF8T5xk3l2le4BvOFu5YWci+pE+QcoG4tEmRfk5w+x4i71Q1aZDCHAMMTavQDYd7zQFMUDDEFmf8bqYO+9SC2cUWpvWpP5YySl72U1U/QqNQCZBlGTZomzcZk0qrDafgo18Ky4KE7x6jZfpZz1joUBekHFFpAG/uRCNquABTN7jA55MCrO/ANIrVBqrYUb8B+mmeR+WauTERZGP4qzYtFQSZt4GcAviQ+CfNQvXrIgcLvHNP15X1XHt7OU+PkzZ5r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/AdkvTxzuJiPSmrslQFxgLSdG1wnsUeglzZB/iZAI7Q3Jvys1Sf96wLvSakTsVvRXiBVr5iQ7G+hFgqm3RPECPpj1E3MHqNfYD/OtAWcktu104tf+ENdNykiEWXVETP4AOiB05xpVfXENRdfOBN1vJeZb8X5/M6sdI7TvOPiJH5Jcli2ZPRTUQcK16SE3Ihz4Bqqfg4kuaWK2fOtM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ebce593-74ee-47ff-917a-08dc123f4dcc X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 00:50:27.8371 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vOquOUvEgVR4MEVMuUu0QkboryUPkvcjGwKw2Zlb2uz+7WCR8pwWZgXk+2031jyJIniDHDkK3HKes9pFbgDHXbuejMp6he3Bqq3IxwE8HAf0AtxByu6Bfap3WNsSX7wH X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10908 Let's use devm_snd_soc_register_card() instead of snd_soc_register_card() and ignore snd_soc_unregister_card() Signed-off-by: Kuninori Morimoto --- sound/soc/ti/omap-hdmi.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 29bff9e6337b..4513b527ab97 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -379,7 +379,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) card->num_links = 1; card->dev = dev; - ret = snd_soc_register_card(card); + ret = devm_snd_soc_register_card(dev, card); if (ret) { dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); return ret; @@ -393,19 +393,11 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) return 0; } -static void omap_hdmi_audio_remove(struct platform_device *pdev) -{ - struct hdmi_audio_data *ad = platform_get_drvdata(pdev); - - snd_soc_unregister_card(ad->card); -} - static struct platform_driver hdmi_audio_driver = { .driver = { .name = DRV_NAME, }, .probe = omap_hdmi_audio_probe, - .remove_new = omap_hdmi_audio_remove, }; module_platform_driver(hdmi_audio_driver); From patchwork Thu Jan 11 00:50:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13516702 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2138.outbound.protection.outlook.com [40.107.114.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47D9238F for ; Thu, 11 Jan 2024 00:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="P8kGXMuT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PJO+jkQ505b4cfrUI3UTclWTwfo6WJIpPM7y1uMvE1EG5NcNKI0o/xQtr60wmztQyyqvfeUMfsfrOrFgp0XQ+eCAEhDvWIWKJTagNKNOB0e0ymQ6ZokbTdtiyvjrmPpv/0OUoWYLpEmranqTK8W55d7A3XlMOg2muVIZSjCXNEZhrim6xPluI9fMXi0S/CLTH3GqlNOOjAGnZimiTgrk1EvhE4rz1beBliFOnoC+b8Uf8lmna9Er4EJMM+RrTC0tyi+LDgHF80lSPWF3JGWr/tE9nu0eC+zfyQXygh3T1HvXVwQG1QXMjjV8t+v/Vo/j5Xc2k4RL1UW34+Cxqc5odA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=j0UeY+Oi4ZyBu6l2iuEKhrUdrEznluqBJHCB6W3sYng=; b=KAQtH+wXkKS+5lRBNWXYrd7NGz/NdUgtuMgfz39eaZezwAWKwFFW5pJ2jMCvjVFMQAnbk+I8rKS/n0AJ8p21zmG7s6NFwey+Mr71W1xvzEn+RWgOE8zb/iEDOn9Kgy5+hYoG1yvxl5OjShg/5dd9J3WPfKwSEhKJKRbZs6tL93wLj7/CtX/HvA8j38uVyommf7IExJbVkVYMkkWTJH+BpaQLdRnljp1aFHkdScoUReX1izC4+y6dJxfpJ/KYpdDBdHtJ5NxEQ9HdOar6gV7Mv+BFYKJu+VqvR2If3UyH7DxXwsk4ik+3VkdLtHpMcKHFh1xMVzD/DtgGwBBUpozwcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j0UeY+Oi4ZyBu6l2iuEKhrUdrEznluqBJHCB6W3sYng=; b=P8kGXMuT2PDbf/ZJf7BtROTfVMJPYscxrOUkbaFMEkZIEv0KbrieYRxxN26Vi6TuaBjxEr1cjNiVuU/Gz/41A56BpG2Phq/upQ7p4lN4c4hACybaIeqxGLC8dYfxhjXdnqGgZY7c24g8QDaAvaiRw4dKRadby35HcC5W8Aza+7g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB10908.jpnprd01.prod.outlook.com (2603:1096:400:393::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Thu, 11 Jan 2024 00:50:35 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b%7]) with mapi id 15.20.7181.015; Thu, 11 Jan 2024 00:50:34 +0000 Message-ID: <87y1cwwv51.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH v2 2/3] ASoC: fsl: use devm_snd_soc_register_card() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 In-Reply-To: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> References: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 11 Jan 2024 00:50:34 +0000 X-ClientProxiedBy: TYAPR01CA0226.jpnprd01.prod.outlook.com (2603:1096:404:11e::22) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10908:EE_ X-MS-Office365-Filtering-Correlation-Id: 40556163-9884-43c3-a4e2-08dc123f5204 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7b8meLReFrx83hL8rRuyZjHiuhTZ0e8WDXySgzKeg7JvZzWaYngxecVhwMpMdLX0ZT8ZP7u93/GgOBAA+iJVZnbC+PlNsnS1Z41Mc8G3NdZdc2jvUTZZ6dcgvlBxG3SjpI3YMMah9NR+BSR2zrsOoMgoQAeLsGUFPX1w59xkwHGu8hZCwN+YUazqm4NQTvQYdhGkJLDGANqlYesvgSyszl0dPhDVl9mlAMKKk7dJVAeFMTd/Uuwi5axAB57n/umG764G+VZ7GFwIxJJnQZJkJ+QElk4+WHWtkTcDakYMWQ+JEBIvFFfZpVweSSq5WMb1S1c+hR8uXbAqQkrm6z3Rf+vYCZtKTMOJQQTWa/NyoAKnaWSF+yEaM0Cd5TDKF2iXRbYVvYI4Q8rUelBanfWGZd/L2cK2OV9gP/f69y6YYnHwzRYzZ5CtCy3YYD8GTeNe9Bb0XHa83ysaDyXkg3/miF5Hvg+8hH4AhpMw0b12rxKs4HccPtojbGHGLSkllw/6zQOZ93Pg4zVkKOChsTMcBWq9nGOvck9kZMCWpzVHYrMJK+HA6CrHFiQah2q150xM5/CiKczOvlKq1L8B7oNxm519CcmD9hw5iFAUGNNIKYAvToi2Xq6Zz9AAi6nwmwm9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(366004)(396003)(346002)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(2616005)(83380400001)(26005)(6512007)(6506007)(52116002)(478600001)(38100700002)(4326008)(2906002)(86362001)(316002)(5660300002)(110136005)(41300700001)(8936002)(6486002)(8676002)(66946007)(66556008)(66476007)(36756003)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: buISTY2FBeSiF+JwQqDe6YAXYRMglNXgzRJ/CNMOwd8CJBcQTPLHxRMdky4CvXx/ZHx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yWE+OBoHmB9pUU5hndtqk51NNdKmxY6gVFM/n9inA8LNuy9vJBNYtMg1jD2yJqcq5VBiwB8IdIgj50TmByYBi1DSFlXTUEyqFff+nfizAmhKcPLKymZ5x1rkp2HXYXXsRrYW49mMo4RqQdbfoHrsQh8Qt5ci/X4xeuALsUt00Zc8EnahoBUpNbKzM+QWJcd5qkL/Ywai8zdwPAY3B/tVD/TgoDAE/6ZopF2x3RtmSIopLeyc1MuofSozGnvOndHkjmcGP/SB60hNdXh+2xy8tz5a4JbDIFjFDGMUOdaTt2H0D3cY5EcKYQkPr0CP0dsdCfiy+A+M9+LysfEROkGXMF1R2jHLpw5bbmQaEBtDmYxAZP5hVYBbJjC02L3d9vLammd453DZKFpMpzAHH/fsETCk2Ju+Sq0KRT5RRgxtu4xCdSyYf/6CGokKtW6jK63YfJ1y+8dc7GAYRQ6fh0HL26VV6mNnGrEWdGhc1R6EW/GZtiGioG7S1VR28= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40556163-9884-43c3-a4e2-08dc123f5204 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 00:50:34.9293 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 54LCI4DVQDWenBw9we/fGl47alrXMDd3uTdttva8EjbdAQrZT2kBHrKZqJWiA8GVd5THqZO6MuTBBUddb/F/JpK8QRcFfIA/qa43R4iAQsLDFXpNK6vvZ54XKizaoOaL X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10908 Let's use devm_snd_soc_register_card() instead of snd_soc_register_card() and ignore snd_soc_unregister_card() Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/eukrea-tlv320.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index 63f1f05da947..6be074ea0b3f 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c @@ -196,7 +196,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) } } - ret = snd_soc_register_card(&eukrea_tlv320); + ret = devm_snd_soc_register_card(&pdev->dev, &eukrea_tlv320); err: if (ret) dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); @@ -205,11 +205,6 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) return ret; } -static void eukrea_tlv320_remove(struct platform_device *pdev) -{ - snd_soc_unregister_card(&eukrea_tlv320); -} - static const struct of_device_id imx_tlv320_dt_ids[] = { { .compatible = "eukrea,asoc-tlv320"}, { /* sentinel */ } @@ -222,7 +217,6 @@ static struct platform_driver eukrea_tlv320_driver = { .of_match_table = imx_tlv320_dt_ids, }, .probe = eukrea_tlv320_probe, - .remove_new = eukrea_tlv320_remove, }; module_platform_driver(eukrea_tlv320_driver); From patchwork Thu Jan 11 00:50:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13516703 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2105.outbound.protection.outlook.com [40.107.113.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98AA038F for ; Thu, 11 Jan 2024 00:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="LrSpKMpn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kXFZd0ygJ7rPr0sjMHCkSYNgtFkLpahztl5ap17CUXMD41l64P/3PGPZq/6O/y9zGsbl96xCnXJI3/dfPQYFMl8Iqvt88VK5gd49p7CoP0twxbk7yGoliOQbu3eQXA7yyYgf2WquGTb0HZ2hu+AW8issQbSKc0iLFoRRUUpObdQQbezZwnMath9WUxQ8abEJCsNOqCjR4wfsY3ha61LN19xwLZv/tQbqlXvuvO5jh6b+fNtBi7NM+Q2I5DlK9+pD6P69eQTv6p7YVRdFGsx+FaSbbSKwc/51SvY6e2BFsmNsKSTb4A1XYs1A0xQhzhTuhSsWmtox7oJdd6466ul8Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nA5ulsqctQGkmlkhXE46nl+yvAM2t7d4kqamtwDaAhk=; b=k3q70nLa6pnNRuH6khF3nIkR7O8P9uQKBDsOJjt7OYzygZ9qptaMOnSlmhJnz0oz9TIxaO3ho8eH9ovlEWD9FdK/LZwLeImQHdRR3zH74xWRvSHpGgvowOI62IZg8Xe/Rimq39AEvtOib5/2g3J0sAGgyt+c14o8AJV3q2AD+cDADSixloy6YIv1u7OlzW0UN0iKSmChZw7EjwQP+zXctYt6hKUYq5V1t0gJ+Hzz5zZ/Sou0GY0orsovYbbBx8+85oj9zGNZNcEbCIyGCXTJdadFdCZYs8JJV6mwnYz//sRvxW4swwjKqrs+16yC0/iZjgteSB1MuvapxZmpbhFQQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nA5ulsqctQGkmlkhXE46nl+yvAM2t7d4kqamtwDaAhk=; b=LrSpKMpnoIgZ/boBSmGzBjhN/qyNvGTXjhKfUBEmdh/Ox2vspXjXiy+iYalI7zllxC/3lPqM9QvTKLz2+GahpIF7YOH4WkMqOG6BlGV1t+W5xfgiOjSXQYXkYE+Jo/0rDOpb7qy3QByAjNKccohqSFMnI6n7qVlWXjmVyW0uxfk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB10908.jpnprd01.prod.outlook.com (2603:1096:400:393::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Thu, 11 Jan 2024 00:50:44 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::91d:1bfa:edc4:1c5b%7]) with mapi id 15.20.7181.015; Thu, 11 Jan 2024 00:50:44 +0000 Message-ID: <87wmsgwv4r.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: =?iso-8859-1?q?=22Uwe_Kleine-K=C3=B6nig=22?= , Alexandre Belloni , Claudiu Beznea , Jaroslav Kysela , Liam Girdwood , Mark Brown , Nicolas Ferre , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH v2 3/3] ASoC: atmel: use devm_snd_soc_register_card() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 In-Reply-To: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> References: <871qaoy9q7.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 11 Jan 2024 00:50:44 +0000 X-ClientProxiedBy: TYAPR01CA0165.jpnprd01.prod.outlook.com (2603:1096:404:7e::33) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10908:EE_ X-MS-Office365-Filtering-Correlation-Id: c29cf8e5-d1d2-4fc0-d078-08dc123f57d6 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iWUgzuM/RTD8sOnF/2yQgj1go5+jqXRFeaiXnpUxAC75hpT8JcOXj4uhh0ayTKjk8ndZ9b9NzDCLgfgLMP5W72Eozau7CY/Z2l61gEzNhm1f3sKXKMgtK3bWy60IyVQO5J8StrGpyAOq1ukw8tlGrat1PuLy/OrSq8oSon1Y/wPd/1OY0GSXnvmYmh/Lig/xkoREDqkFOfN7Bw0H0mvAiHbVt00C4XliGnb8kV8LHNMLVBoWK+OlaGuLFalZu9ctoybuLaRzcNGfHZgmjHXhcvC7GFmV2Ehb02Xsxnrq+oMo9Ys+2bjSFldp0UAT+Xk2v7yOnjnVq61b3hgG90KCixxKKcgBaHJwzkZGL9NJCgemBswaRLGcOmsGcKU5mRHP9m2m7mAw4Yrv4otxst1w1iTe/RNAQ+flHROBBYIFJkmopSAwAjerM4fEzR+ilf48Jr0tUzVfeG2P+02h9BvJCErv3re5z49OV+8bAzSd70SbGSzGGjOZ2NyjY0ukg+WKiiEWyDTHIW3rdaWAN0gVqBePve/rAkc3gnynYbqGZAK2iA7cGdQ4G1IoDcty77yptUQ8fTU9DK+GgOMGogloDMe8FGudPlJEX+jtXNgHhbzxgHhWtxJBh3Si22He1oon X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(366004)(396003)(346002)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(2616005)(83380400001)(26005)(6512007)(6506007)(52116002)(478600001)(38100700002)(4326008)(2906002)(86362001)(316002)(5660300002)(110136005)(41300700001)(8936002)(6486002)(8676002)(7416002)(66946007)(66556008)(66476007)(36756003)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: C3Mq3tjcAiOZns9PPeOs/He3BNC0na7oHVsSpGH645DLr3mv6RgfwzkNNHCAN/jOeihYrqpYfGlGAaX56DSfXaHSrTbEsYyMplpscCoTUV+F/z9nugK2iZ6rYcy7kYAmde0iHEYZXR0O3LXakuhghaTOEDXHWqBrsQ6iUVxJu+wlEd6eouSZuvlaaQ8SJu27Kyr6NUniX+oLhNp8J0sT8pLgKUsodykQ3siCNqrZya+qjSq+BMgq4wd+5CLqdFQWfLLSQ2VO5yx4d7XlgKnq5KaycACWELji4z3Z1Wyu063zaPUyYkE2tLouJHDtjk0WHBdg6L2QEwSqR1P8jf8rUWWL/fPHZeRnk4qQbMNTHDB8W0furSt8WWYbxVw4atZR1GlFtvDi5V1GvnhcgEbCVQaM0MVaEJkWGuyEmjhnurBk4ULyHTMS91qAo+e2WQArOHzyOEBDY/jM81oO8ukb5vpTm0SIzW2y/4VmHMpflqcmXqEwhL0cHi4o3So/i5+VbgK/SUFyXQxkyGmc6ADt7a9h/iVQiE9R0dWL4vdSstIqC1mjPIJopOCMqsDcC63Lj5P3NkYECcylSiNjTVPPPr9IyieqxKFd7Y3uhfLKujCzi9vghzuFMzwmg4rI82qAYqtMdGhJ0o0nISYLu83Ye+V8t1eXjLlByg8Nbghqy8KTiYnx35SIvjsl19NwknPMUoT7NRLCdsexWJJAbkIc9ymNAsacmV0iBXibWyR+LbJEzOJ8vx79ny6UyF2pWUkQ7nED9mJwvzAtVsaKLvpYBNWyJwP9esaLoWf5KgI1SJETu+RBuhGRrBIsN2BuSwhjpFs8nPvJQSZQ9jeg8bTIRoLldiy+uk6gACSaEWqoVdKwiYhSOL/hsJATE6KPWMGu2uLFqCLz8EVKKcrsjxvAORyQ1YtkKV5gg3kB5YfPeTvQdGEAQhEddkPFGkC/kgi41ltTAxGygo0arzxyN/yKgRrYXysgMtuPYekQElXLEadKeRquZR6tYZHUzlYng96C2gnUrKgNllndkBdwGwDUBNqlAu5MZbidr4ioKT8y4Lf02qfxteeIy88eK8lZ7tLeCpgehNONbdPT+IzI5cYou2hxf6jyovp6jXlOxtol4JTBFAAT7L2lCr2yim9xh9G+nz/D0x74tWgG5p799FAaQV8lraJFO+zT/zF5DEhkkYrUufryzalHoM7YgtgZ5zqWqVz9qr2IVlUkLIhpN6ZMNH8GqLvQKn8cSKY2rca4k2WC6r3g0OifRLsit64orB8Wf1nGk6TMdIB5rS1TtjucPpRkoxoOn5uhBbe0KuFWo0tl4CNOPr8dmu/frow5lGqmfQQjm/i6CWLpTITcL8JWTUEAWHRpPBmtDheTl/e3qhPPvS6chusf1f1YWw2uCE+fl9FmnX+VTGmGE/gL7rMph52be3Tgfp6G1iWWu1sV9gObm/qgiUJAX2NfeyoI7+8+a2SI8y7e4v3ZiFcQcIBe7K3en12vjTew7UdDSXHKU1px6rAKJYoZr7c4iTv3Sx9EpVdXdaZtzvSLvfVyRttZPKb3jpp6xvKkR8cCJn24cjh3Zjot5yliaB65INb7GdQVGbMb5z6SUY41MN5mvMqqMJyvePnLlfLFDrcc0dRYVP8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c29cf8e5-d1d2-4fc0-d078-08dc123f57d6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 00:50:44.6886 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iQTesFAte9Kus1LA5lw18AuYQrDU3R4r52i07f4Dny9XSuRfdvkLT0tI67rDXRgdffdYe/pjEwg8LDjgpC7ngocbaomSaWb9WOCkLQ/MZOBS8+bFFJsVvG5bQjmr5Kgp X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10908 Let's use devm_snd_soc_register_card() instead of snd_soc_register_card() and ignore snd_soc_unregister_card() Signed-off-by: Kuninori Morimoto --- sound/soc/atmel/mikroe-proto.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/atmel/mikroe-proto.c b/sound/soc/atmel/mikroe-proto.c index 18a8760443ae..8341a6e06493 100644 --- a/sound/soc/atmel/mikroe-proto.c +++ b/sound/soc/atmel/mikroe-proto.c @@ -140,7 +140,7 @@ static int snd_proto_probe(struct platform_device *pdev) dai->dai_fmt = dai_fmt; - ret = snd_soc_register_card(&snd_proto); + ret = devm_snd_soc_register_card(&pdev->dev, &snd_proto); if (ret) dev_err_probe(&pdev->dev, ret, "snd_soc_register_card() failed\n"); @@ -155,11 +155,6 @@ static int snd_proto_probe(struct platform_device *pdev) return ret; } -static void snd_proto_remove(struct platform_device *pdev) -{ - snd_soc_unregister_card(&snd_proto); -} - static const struct of_device_id snd_proto_of_match[] = { { .compatible = "mikroe,mikroe-proto", }, {}, @@ -172,7 +167,6 @@ static struct platform_driver snd_proto_driver = { .of_match_table = snd_proto_of_match, }, .probe = snd_proto_probe, - .remove_new = snd_proto_remove, }; module_platform_driver(snd_proto_driver);