From patchwork Tue Jun 30 21:44:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 6698471 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E44339F39B for ; Tue, 30 Jun 2015 21:44:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16FA12062A for ; Tue, 30 Jun 2015 21:44:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C9B9920629 for ; Tue, 30 Jun 2015 21:44:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752534AbbF3Vo4 (ORCPT ); Tue, 30 Jun 2015 17:44:56 -0400 Received: from sauhun.de ([89.238.76.85]:46162 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430AbbF3Vot (ORCPT ); Tue, 30 Jun 2015 17:44:49 -0400 Received: from p4fe25342.dip0.t-ipconnect.de ([79.226.83.66]:35041 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZA3Kf-0002dV-TJ; Tue, 30 Jun 2015 23:44:46 +0200 From: Wolfram Sang To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , Laurent Pinchart , Geert Uytterhoeven , Wolfram Sang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org Subject: [RFC 1/3] of: make of_mutex public Date: Tue, 30 Jun 2015 23:44:09 +0200 Message-Id: <1435700651-3543-2-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435700651-3543-1-git-send-email-wsa@the-dreams.de> References: <1435700651-3543-1-git-send-email-wsa@the-dreams.de> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wolfram Sang If we want to use OF_DYNAMIC features outside the of framework, we need to access this lock. If OF maintainers don't like exporting, we can maybe create accessor functions that we can use? Signed-off-by: Wolfram Sang --- drivers/of/of_private.h | 1 - include/linux/of.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index 8e882e706cd8c6..f92ec41efb5dfd 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -31,7 +31,6 @@ struct alias_prop { char stem[0]; }; -extern struct mutex of_mutex; extern struct list_head aliases_lookup; extern struct kset *of_kset; diff --git a/include/linux/of.h b/include/linux/of.h index b871ff9d81d720..f0464efcbdc5aa 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -32,6 +32,8 @@ typedef u32 phandle; typedef u32 ihandle; +extern struct mutex of_mutex; + struct property { char *name; int length;