Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760108AbcLUKT6 (ORCPT ); Wed, 21 Dec 2016 05:19:58 -0500 Received: from webbox1416.server-home.net ([77.236.96.61]:50202 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757295AbcLUKTy (ORCPT ); Wed, 21 Dec 2016 05:19:54 -0500 From: Alexander Stein To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Will Deacon , Mark Rutland , Russell King Cc: Alexander Stein , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] arm: perf: Add platform driver removal function Date: Wed, 21 Dec 2016 11:19:35 +0100 Message-Id: <20161221101935.17178-4-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161221101935.17178-1-alexander.stein@systec-electronic.com> References: <20161221101935.17178-1-alexander.stein@systec-electronic.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 34 Despite the driver cannot be built as a module using the option DEBUG_TEST_DRIVER_REMOVE requires the drivers to actually remove the device. Signed-off-by: Alexander Stein --- arch/arm/kernel/perf_event_v7.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index b942349..3ad02a2 100644 --- a/arch/arm/kernel/perf_event_v7.c +++ b/arch/arm/kernel/perf_event_v7.c @@ -2026,12 +2026,18 @@ static int armv7_pmu_device_probe(struct platform_device *pdev) armv7_pmu_probe_table); } +static int armv7_pmu_device_remove(struct platform_device *pdev) +{ + return arm_pmu_device_remove(pdev); +} + static struct platform_driver armv7_pmu_driver = { .driver = { .name = "armv7-pmu", .of_match_table = armv7_pmu_of_device_ids, }, .probe = armv7_pmu_device_probe, + .remove = armv7_pmu_device_remove, }; static int __init register_armv7_pmu_driver(void) -- 2.10.2