]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: cleanup ide_system_bus_speed()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:35 +0000 (23:09 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:35 +0000 (23:09 +0100)
commit537f06c5deaffbbe155bcc898369f889e7f3e647
treeb50e791f9a33a7e510dd7439ec047ca08c857b9f
parent422278ef9585b0be62b1bd6d48935a7529aa5094
ide: cleanup ide_system_bus_speed()

Use the facts that:

* When ide_init() is called 'system_bus_speed' always equals zero.

* system_bus_clock() is never called before ide_init().

and:

* Move printk() from ide_system_bus_speed() to ide_init().

* Don't assign 'system_bus_speed' in ide_system_bus_speed().

* Don't call ide_system_bus_speed() in system_bus_clock().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide.c