Commit 9fe1dbdb authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

[PATCH] ARM: OMAP: misc cleanup patches

This fixes various build warnings I noticed in the latest tree,
and provides saner reports of DPLL1 and MPU clock rates (they
weren't really in MHz).
parent 070a73d4
...@@ -1224,9 +1224,11 @@ int __init clk_init(void) ...@@ -1224,9 +1224,11 @@ int __init clk_init(void)
#endif #endif
/* Cache rates for clocks connected to ck_ref (not dpll1) */ /* Cache rates for clocks connected to ck_ref (not dpll1) */
propagate_rate(&ck_ref); propagate_rate(&ck_ref);
printk(KERN_INFO "Clocking rate (xtal/DPLL1/MPU): %ld.%01ld/%ld/%ld MHz\n", printk(KERN_INFO "Clocking rate (xtal/DPLL1/MPU): "
"%ld.%01ld/%ld.%01ld/%ld.%01ld MHz\n",
ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10, ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10,
ck_dpll1.rate, arm_ck.rate); ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10,
arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10);
#ifdef CONFIG_MACH_OMAP_PERSEUS2 #ifdef CONFIG_MACH_OMAP_PERSEUS2
/* Select slicer output as OMAP input clock */ /* Select slicer output as OMAP input clock */
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <asm/hardware/clock.h> #include <asm/hardware/clock.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/setup.h>
#include <asm/arch/board.h> #include <asm/arch/board.h>
#include <asm/arch/mux.h> #include <asm/arch/mux.h>
......
...@@ -267,13 +267,14 @@ omap1610_wdt_shutdown(struct device *dev) ...@@ -267,13 +267,14 @@ omap1610_wdt_shutdown(struct device *dev)
omap_wdt_disable(); omap_wdt_disable();
} }
static void __exit static int __exit
omap1610_wdt_remove(struct device *dev) omap1610_wdt_remove(struct device *dev)
{ {
struct resource *mem = dev_get_drvdata(dev); struct resource *mem = dev_get_drvdata(dev);
misc_deregister(&omap_wdt_miscdev); misc_deregister(&omap_wdt_miscdev);
release_resource(mem); release_resource(mem);
clk_put(armwdt_ck); clk_put(armwdt_ck);
return 0;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
...@@ -508,7 +508,7 @@ do_release_region: ...@@ -508,7 +508,7 @@ do_release_region:
return r; return r;
} }
static void __exit static int __exit
omap_i2c_remove(struct device *dev) omap_i2c_remove(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
...@@ -519,6 +519,7 @@ omap_i2c_remove(struct device *dev) ...@@ -519,6 +519,7 @@ omap_i2c_remove(struct device *dev)
free_irq(INT_I2C, &omap_i2c_dev); free_irq(INT_I2C, &omap_i2c_dev);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(mem->start, (mem->end - mem->start) + 1); release_mem_region(mem->start, (mem->end - mem->start) + 1);
return 0;
} }
static struct device_driver omap_i2c_driver = { static struct device_driver omap_i2c_driver = {
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
/* I2C Addresses to scan */ /* I2C Addresses to scan */
static unsigned short normal_i2c[] = { TLV320AIC23ID1, TLV320AIC23ID2, I2C_CLIENT_END }; static unsigned short normal_i2c[] = { TLV320AIC23ID1, TLV320AIC23ID2, I2C_CLIENT_END };
static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
/* This makes all addr_data:s */ /* This makes all addr_data:s */
I2C_CLIENT_INSMOD; I2C_CLIENT_INSMOD;
......
...@@ -54,7 +54,6 @@ MODULE_LICENSE("GPL"); ...@@ -54,7 +54,6 @@ MODULE_LICENSE("GPL");
static unsigned short normal_i2c[] = { static unsigned short normal_i2c[] = {
TPS_BASE, TPS_BASE,
I2C_CLIENT_END }; I2C_CLIENT_END };
static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
I2C_CLIENT_INSMOD; I2C_CLIENT_INSMOD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment