Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2616855pxj; Mon, 31 May 2021 06:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztW6nUlaEc/sHrmbZZTkEXrIj9LszM/mpRs0kuetU+yHJG4i+3o4LkrTL3yFvOVvGw9V2W X-Received: by 2002:a17:906:3845:: with SMTP id w5mr23523064ejc.518.1622468371043; Mon, 31 May 2021 06:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622468371; cv=none; d=google.com; s=arc-20160816; b=zIl0Fp2ZjdzhBF/KwGwn8hoJhMhmRCfqgskDKM07/2/tnJvqGbmiwvaXUF0yP+mgVU EDJtVEilivD3OLIySIGd8wzqpe8eRMAKLW5nj/avZXRkwl8+9p6K7UK9gzphLaVRGU/w B0ZG3xpzPvVEXHhG//l0czve5JKmgD54jB0tB357qciQbtAa85mPmaU4WniQXjVUervf gZVg3iTTn2Wq090y9N7vRgvt4YrV3PepNuiJo07PaH8LftJZqhpmH/36zK+qmpOQq7Fg ByWgboStCct94kFBSDH3GC+UslyGfj+J0cZUGspzNzLjEX3vPH0GJdAZqruV9j9s7A3l Hj+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=5bXN+PnymH1L3fPLu2W4gxONiqL+knqFUrHH368ZBLs=; b=Z0I+XMHr0eCt5/KHlj3ZhUZuDvsrHt5UqfxRA0hlTAuoQeI9SaYK21fPwEcUqLJZT/ mJinrGvAU11UvMGxa7vuxzt2rdKRW1kLN6vWOM/nLyyzYOKDL9YqrE/pFZwqdDD6ZcV9 e/sha32aD0P0gGGMwfPjY0avxdOF1OVC9CZPqLNnuK3kwo5LTeKYCucMgXv1SmuE39qw HHEYyaJpwQ945BvfBIY4Va7h0I24CT3RxXUUBADrQsgJxztl9G1lOJVLQa+H7j89aZAp OVqntQ6P8uv35b/aHXewxC52PEeIbayZdy80QQEt56eRzIZqSHIA3fv3ua+ofGjWrwAP 53AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb17si16268335ejc.20.2021.05.31.06.39.07; Mon, 31 May 2021 06:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232090AbhEaNjD (ORCPT + 99 others); Mon, 31 May 2021 09:39:03 -0400 Received: from mga03.intel.com ([134.134.136.65]:1438 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbhEaN1A (ORCPT ); Mon, 31 May 2021 09:27:00 -0400 IronPort-SDR: mUwqcWKGLtkTAe579X+1Jsa3qxjfMDyDQ3Y5q20p8pfv0s1tleg74X3omjSLi+3M3TgJeNG+82 mbdWuHzgv3qw== X-IronPort-AV: E=McAfee;i="6200,9189,10000"; a="203394960" X-IronPort-AV: E=Sophos;i="5.83,237,1616482800"; d="scan'208";a="203394960" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2021 06:22:08 -0700 IronPort-SDR: liI2DfwDLQ9hNU9BmbLM3P4YuqlgD6tMOBlYwldjLUTnT3EezvNneTJi7vElVnV0XXvqb4DoRj g4a2gSlYfFyw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,237,1616482800"; d="scan'208";a="478911609" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 31 May 2021 06:22:06 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 3994012A; Mon, 31 May 2021 16:22:29 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Alan Ott , Alexander Aring , Stefan Schmidt , "David S. Miller" , Jakub Kicinski Subject: [PATCH v1 1/1] mrf29j40: Drop unneeded of_match_ptr() Date: Mon, 31 May 2021 16:22:26 +0300 Message-Id: <20210531132226.47081-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver can be used in different environments and moreover, when compiled with !OF, the compiler may issue a warning due to unused mrf24j40_of_match variable. Hence drop unneeded of_match_ptr() call. While at it, update headers block to reflect above changes. Signed-off-by: Andy Shevchenko --- drivers/net/ieee802154/mrf24j40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index b9be530b285f..ff83e00b77af 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -8,8 +8,8 @@ #include #include +#include #include -#include #include #include #include @@ -1388,7 +1388,7 @@ MODULE_DEVICE_TABLE(spi, mrf24j40_ids); static struct spi_driver mrf24j40_driver = { .driver = { - .of_match_table = of_match_ptr(mrf24j40_of_match), + .of_match_table = mrf24j40_of_match, .name = "mrf24j40", }, .id_table = mrf24j40_ids, -- 2.30.2