Skip to content

Commit

Permalink
[S390] cio: Make ccw_device_register() static.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Oct 27, 2006
1 parent f3b017d commit 3c9da7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion drivers/s390/cio/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

Expand Down

0 comments on commit 3c9da7b

Please sign in to comment.