From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756166Ab1ILQtF (ORCPT ); Mon, 12 Sep 2011 12:49:05 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:64825 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755566Ab1ILQrz (ORCPT ); Mon, 12 Sep 2011 12:47:55 -0400 From: Ohad Ben-Cohen To: , , Cc: Tony Lindgren , Arnd Bergmann , Ohad Ben-Cohen Subject: [PATCH 06/10] hwspinlock/core: remove stubs for register/unregister Date: Mon, 12 Sep 2011 19:47:01 +0300 Message-Id: <1315846025-11453-7-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1315846025-11453-1-git-send-email-ohad@wizery.com> References: <1315846025-11453-1-git-send-email-ohad@wizery.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hwspinlock drivers must anyway select CONFIG_HWSPINLOCK, so there's no point in having register/unregister stubs. Removing those stubs will only make it easier for developers to catch CONFIG_HWSPINLOCK mis-.config-urations. Signed-off-by: Ohad Ben-Cohen --- include/linux/hwspinlock.h | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h index f85cef5..c246522 100644 --- a/include/linux/hwspinlock.h +++ b/include/linux/hwspinlock.h @@ -122,16 +122,6 @@ static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) return 0; } -static inline int hwspin_lock_register(struct hwspinlock *hwlock) -{ - return -ENODEV; -} - -static inline struct hwspinlock *hwspin_lock_unregister(unsigned int id) -{ - return NULL; -} - #endif /* !CONFIG_HWSPINLOCK */ /** -- 1.7.4.1