From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Date: Mon, 6 Jun 2011 12:34:30 +0200 Subject: [RFC][PATCH 06/10] bcma: get CPU clock In-Reply-To: <1307311658-15853-7-git-send-email-hauke@hauke-m.de> References: <1307311658-15853-1-git-send-email-hauke@hauke-m.de> <1307311658-15853-7-git-send-email-hauke@hauke-m.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Hauke Mehrtens Cc: linux-wireless@vger.kernel.org, linux-mips@linux-mips.org, mb@bu3sch.de, george@znau.edu.ua, arend@broadcom.com, b43-dev@lists.infradead.org, bernhardloos@googlemail.com 2011/6/6 Hauke Mehrtens : > +u32 bcma_cpu_clock(struct bcma_drv_mips *mcore) > +{ > + ? ? ? struct bcma_bus *bus = mcore->core->bus; > + > + ? ? ? if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU) > + ? ? ? ? ? ? ? return bcma_pmu_get_clockcpu(&bus->drv_cc); > + > + ? ? ? pr_err("No PMU available, need this to get the cpu clock\n"); > + ? ? ? return 0; > +} > +EXPORT_SYMBOL(bcma_cpu_clock); Are you really going to use this in some separated driver? If you're, I heard that exporting symbol should go in pair with patch enabling usage of such a symbol. -- Rafa?