lkml.org 
[lkml]   [2013]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3] x86, pci sta2x11-fixup: add function to access sta2x11 instance id
Date
The sta2x11 instance id will be included in clock names to make them
unique in case of multiple sta2x11's living on the same machine.

Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com>
---
arch/x86/pci/sta2x11-fixup.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c
index 478c228..6450853 100644
--- a/arch/x86/pci/sta2x11-fixup.c
+++ b/arch/x86/pci/sta2x11-fixup.c
@@ -138,6 +138,12 @@ struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev)
}
EXPORT_SYMBOL(sta2x11_get_instance);

+int sta2x11_get_instance_id(struct sta2x11_instance *instance)
+{
+ return instance->bus0;
+}
+EXPORT_SYMBOL(sta2x11_get_instance_id);
+

/**
* p2a - Translate physical address to STA2x11 AMBA address,
--
1.7.10.4


\
 
 \ /
  Last update: 2013-03-08 17:42    [W:0.926 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site