summaryrefslogtreecommitdiffstats
path: root/include/linux/parport.h
diff options
context:
space:
mode:
authorAlan Cox2009-06-02 17:58:10 +0200
committerLinus Torvalds2009-06-02 18:53:22 +0200
commit05ad709d04799125ed85dd816fdb558258102172 (patch)
treea2fffcedd4d9178663175dcc3816d86734336505 /include/linux/parport.h
parentpata_netcell: LBA48 force identify bits correct (diff)
downloadkernel-qcow2-linux-05ad709d04799125ed85dd816fdb558258102172.tar.gz
kernel-qcow2-linux-05ad709d04799125ed85dd816fdb558258102172.tar.xz
kernel-qcow2-linux-05ad709d04799125ed85dd816fdb558258102172.zip
parport: quickfix the proc registration bug
Ideally we should have a directory of drivers and a link to the 'active' driver. For now just show the first device which is effectively the existing semantics without a warning. This is an update on the original buggy patch that I then forgot to resubmit. Confusingly it was proposed by Red Hat, written by Etched Pixels fixed and submitted by Intel ... Resolves-Bug: http://bugzilla.kernel.org/show_bug.cgi?id=9749 Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/parport.h')
-rw-r--r--include/linux/parport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h
index e1f83c5065c5..38a423ed3c01 100644
--- a/include/linux/parport.h
+++ b/include/linux/parport.h
@@ -324,6 +324,10 @@ struct parport {
int spintime;
atomic_t ref_count;
+ unsigned long devflags;
+#define PARPORT_DEVPROC_REGISTERED 0
+ struct pardevice *proc_device; /* Currently register proc device */
+
struct list_head full_list;
struct parport *slaves[3];
};