From patchwork Mon Oct 7 11:49:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13824506 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FE471D26E1 for ; Mon, 7 Oct 2024 11:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728301765; cv=none; b=BoLFvOK/6vo/JR2mEW01Z2mz5Pp1kM+XhIxKVwP8tELlKD1yrzYjEhEgcg1I4PNbAsMHnxHGUyFCrEPz0BCYIFGnCxlHhUF2SxLo4HRQISgYHJn85UGL6//bt3ZKlo6YfzouptKnEV5vYCU3WTfeWUX6SeXp1Coq/466jnlTJWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728301765; c=relaxed/simple; bh=CwpOFg4bgrjWyI+5S61q1hT+KgK4ZNfQCXjlswun6jQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UCKBWlEXE3tqB9TATu9+Y8ENzxIhbMbXGY3+V8ybuSGEgZgigZVCjJOK/JUCZeYB9RnpNgdwr3jhktacq+3Q+Gu/bX9tTgXdhlu1eCOlqVoM81MAWE0aVXS3jE8HLgzlcwUaTPF+RsJxST3/Gk7vFUAiE0eZtNt6wlfURYsP/90= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=JHW2tjgK; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="JHW2tjgK" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-37cdbcb139cso3399974f8f.1 for ; Mon, 07 Oct 2024 04:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1728301762; x=1728906562; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xQ1GRfK/HWDCVNGLvs5ZEQCWn2sGXdSUqplniVgccr8=; b=JHW2tjgKK29fB2qySkPju7KsNUOUKe6FcC3uDEelNB42/hv9j+3OihWu8dgy0yBJHG lSFHceTpX5ilbTS0KeNUlJ9gMEWs4jhTbK4b2S735rXHGF6aGDHfRnqY8eHk9js5cs4e vxjDPxItkneKZYyRLdvISXfL2sGRTegBMVxYGqXG/SI8egQoHm7fOhILABgqjZhIT6fo aEg/DbIIdD8weAcVDfk2QVFnNNFQVGCG0YHGKaNA1aahXO3Sh8XHaC3b2TxotU1Zwf/t 4uyE5qxhATdEAXz2RO80N79qfXcNMRrjnOzCcE6x5olN2xMfFW50mSokwCm3v6kLy+p3 e0Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728301762; x=1728906562; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xQ1GRfK/HWDCVNGLvs5ZEQCWn2sGXdSUqplniVgccr8=; b=pXIwJcHAxsT0k/VVgNixuuq+crRqI/ISeo5GkUHeC3yMeosiPTcZtIMYQDjFYs1TW6 Nr5N7uOEfW49YO3WN2ngozrca4ZeOl3oMNaK2c5ulZ8WljvOdB3JtYMa6nOcjdAVLsdh nV1JKkgfGx18IFDA8eRmv5iL0EC2hRkpjoWIJm3Q2/HHss+in+ICY3goO8k1PnK5DUpB QfYKB4FCWbIC24LKeTHPQShWgKw0Pw3dE68v5UJp2WlcFoZGnaAJsYXQ+O25nLPppqTu Lk/mwkmD5iSVtn8B2f/KsDybUtQdo+X3kKNUXrgjYbhJ9AffGTnK1ioEAmY+wmMwjv6P 6/Xw== X-Gm-Message-State: AOJu0YyqgtsdbiqU1mxlPJRD9wzc8r+kxEgT/WGON8II20vuehDyaAHq rkoasQFg6Y+iGFidTSDHCD6Y2HtE9O4YZe+B83JVN8oA1Hz9iTtYIaydaYvfimk= X-Google-Smtp-Source: AGHT+IEwMe0aQIiePL+driFAFg5OQweZ9DeNFvdb5Z7/K3dj+OH4I/ZCu5wOlj/zuMs5TASSSQk3rQ== X-Received: by 2002:a5d:6b0b:0:b0:374:cea0:7d3d with SMTP id ffacd0b85a97d-37d0eae49b7mr6321283f8f.53.1728301761703; Mon, 07 Oct 2024 04:49:21 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:6100:637:cbe9:f3bc]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d16920549sm5548261f8f.54.2024.10.07.04.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 04:49:21 -0700 (PDT) From: Bartosz Golaszewski To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/2] mmc: davinci: use generic device_get_match_data() Date: Mon, 7 Oct 2024 13:49:18 +0200 Message-ID: <20241007114918.52066-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241007114918.52066-1-brgl@bgdev.pl> References: <20241007114918.52066-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski There's no reason for this driver to use the OF-specific variant so switch to using the generic device_get_match_data() helper instead. Signed-off-by: Bartosz Golaszewski --- drivers/mmc/host/davinci_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index fe7712532e84..cde4c4339ab7 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -21,9 +21,9 @@ #include #include #include -#include #include #include +#include /* * Register Definitions @@ -1228,7 +1228,7 @@ static int davinci_mmcsd_probe(struct platform_device *pdev) host->mmc_input_clk = clk_get_rate(host->clk); - pdev->id_entry = of_device_get_match_data(&pdev->dev); + pdev->id_entry = device_get_match_data(&pdev->dev); if (pdev->id_entry) { ret = mmc_of_parse(mmc); if (ret) {