Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp819423ybm; Wed, 27 May 2020 08:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBCuHQecw5kbFLOw6ITw0O7wWkcB3LyLOQzbDu+dpXsHHclV3pdBGKmeWbof9esZN/7PSu X-Received: by 2002:aa7:d787:: with SMTP id s7mr24828909edq.104.1590594358637; Wed, 27 May 2020 08:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594358; cv=none; d=google.com; s=arc-20160816; b=yO2j8MdhwnBVoEL2OjueVouNGczb1rbRfwvKkuVAc3uj0J/NykemApSjJS6Gj4jzf9 0BmCo+WCfSrla5fUF4mXKN3P1cziHOplAki2inHW/6fpr3bg7YnVPtU7V2sjSbgqI+kb BfKOm88CG0zp2U7PDYURZdxu24ShywJAK8wZX7EHSWMAcIm5552EbvBZhVlqSj2CH3aj ncoiU+TNj9eOxTunYlfWFt2U/aK5DqQdFwMFlirFPeDo8i+FiEn2mGVSEnRU6kIJ47E1 PltiV9hxADvWjJzzUszfm++eU+LvwmTvNmDGxPfEnLa1s3sz0Cu9NJQ0IHzo93wixV95 84uA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7JrgKFknWam4V1fZqyMtAvJglLBt+OuycTcodKNrhfA=; b=EL5vjCkLeSV5KVC+uKP0tPU58+JPVzTErl1D9m14KNdi9BLWcM+zZEtF6kQ+o9nPPD j1Y4N1AW8CnLKoo69UwRtiMFcryYzSeyISz5P4dKgP7Sv5WxlytODYv/cwj2OLqHE8Xc +6R1fknGkE/kJQ/bxh11wUi7ExmhUjoUMWEjjdJz6dktBIn24Towf64nmkWKFeVIZe60 tBRtbJ0hCgmugB+m7mUH2yjEXENDAQ0XjcRQeFI8cQ1XR7NX6L+LFVpDUvzB0YoAa0fS csyO4lS32oSguUwFPtr1xDLzhp8wd5gTbdDgtLMfMrGXRAhtcdAWG673nxG2aMgrgzxo nTFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vXBWyVt9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv22si2025921ejb.585.2020.05.27.08.45.35; Wed, 27 May 2020 08:45:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=vXBWyVt9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729597AbgE0L0Y (ORCPT + 99 others); Wed, 27 May 2020 07:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbgE0L0X (ORCPT ); Wed, 27 May 2020 07:26:23 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0EFC061A0F for ; Wed, 27 May 2020 04:26:23 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id m18so28426465ljo.5 for ; Wed, 27 May 2020 04:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7JrgKFknWam4V1fZqyMtAvJglLBt+OuycTcodKNrhfA=; b=vXBWyVt9KfxvraiQX+TBkoR9fkLxC6dAcjgqDC8FPB8Eg5T0vCu3hFkF7mrPDmGH3+ B8sK9h5OmF3hTDadQ/boUYw+M60ietj/qXOgyJsslTPI/qJK8r9mWyxG2uPL3tC3EPGo 9OKSyfA3fDQGAvb8q3XLuZGH5rY/VSeDCgpjjTGyhJ7k+KrmPnEaPf3uF6AUYWQGMauo dl9FMEIA/nAFX3bS2PqWq+9j+UTxtt5BWFBimT+d8KxcUc3CDwP7O7YQdUivztrgny63 Q1FfDh9V8pUOvvddTYTtExzVL+81dSlazBBOL7SOK4pkp+mrC31giVsP5cUZBYfs1/1y Ea2g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=7JrgKFknWam4V1fZqyMtAvJglLBt+OuycTcodKNrhfA=; b=tfu7iR5x1wY0rbdwnF9oZizBtaDQZAGCpC9ALNjufbRjCX0gbfJUYIRMqpReJwJLlC f86SqrScUEx+0QGNGiZDHysRUDAF2HimDZUR7/daVpV5sVq0YdwLFoxojmwsqVPAf2mT 4YFba4prh+w9YSp/sCw1OgsGfxKtelrqokn/ipvIdwNZmIQ2YGW9UXSZJW2tfEP7h4T3 gL/EBFIJqvtleblmy22h4gqECnBBErYkYpu2Tfc+TwYG1LuDUDaMPBx7jYB+3QGUdJO2 XTQIkXiKYp1hu6uwcpk1j/U82zxFSBFv29POTKpXqs65dbOSotSwmvREqCMxGymNxrGc xD4g== X-Gm-Message-State: AOAM532/QQ6U2Ke+So94V+74ledpu3E/C9ILAsKZG2Y2lesriwO2Z7Ln fLBzANWYoZY1y2n1WdZfGpMkhw== X-Received: by 2002:a2e:9b89:: with SMTP id z9mr2653117lji.51.1590578781833; Wed, 27 May 2020 04:26:21 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id c4sm844304lfj.9.2020.05.27.04.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:21 -0700 (PDT) From: Anders Roxell To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 2/5] power: vexpress: cleanup: use builtin_platform_driver Date: Wed, 27 May 2020 13:26:05 +0200 Message-Id: <20200527112608.3886105-3-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> 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 Use the helper macro for builtin drivers taht don't do anything special in driver init. This removes some boilerplate code. Signed-off-by: Anders Roxell --- drivers/power/reset/vexpress-poweroff.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/power/reset/vexpress-poweroff.c index 0bf9ab8653ae..1fdbcbd95fc2 100644 --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -146,9 +146,4 @@ static struct platform_driver vexpress_reset_driver = { .suppress_bind_attrs = true, }, }; - -static int __init vexpress_reset_init(void) -{ - return platform_driver_register(&vexpress_reset_driver); -} -device_initcall(vexpress_reset_init); +builtin_platform_driver(vexpress_reset_driver); -- 2.26.2