]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] cio: Make ccw_device_register() static.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 27 Oct 2006 10:39:33 +0000 (12:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Oct 2006 10:39:33 +0000 (12:39 +0200)
ccw_device_register() is only called from io_subchannel_register()
and io_subchannel_probe() and will never be called for possible
non-io subchannels.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c
drivers/s390/cio/device.h

index 94bdd4d8a4c9c205b72ef1b92dc598fb37b38d0e..39c98f940507378fae0442e1f5a207bae11eff65 100644 (file)
@@ -532,8 +532,7 @@ device_remove_files(struct device *dev)
 
 /* this is a simple abstraction for device_register that sets the
  * correct bus type and adds the bus specific files */
-int
-ccw_device_register(struct ccw_device *cdev)
+static int ccw_device_register(struct ccw_device *cdev)
 {
        struct device *dev = &cdev->dev;
        int ret;
index c6140cc97a80933bc129ca3b091183fdcd3ec747..9233b5c0bcc87ca6e9a7df4a7e9c59fe047bd946 100644 (file)
@@ -78,7 +78,6 @@ void io_subchannel_recog_done(struct ccw_device *cdev);
 
 int ccw_device_cancel_halt_clear(struct ccw_device *);
 
-int ccw_device_register(struct ccw_device *);
 void ccw_device_do_unreg_rereg(void *);
 void ccw_device_call_sch_unregister(void *);