diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-09-04 07:02:35 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-04 07:02:35 -0400 |
| commit | 42390cdec5f6e6e2ee54f308474a6ef7dd16aa5c (patch) | |
| tree | e9684c84f53272319a5acd4b9c86503f30274a51 /arch/arm/plat-s3c24xx | |
| parent | 11c231a962c740b3216eb6565149ae5a7944cba7 (diff) | |
| parent | d210baf53b699fc61aa891c177b71d7082d3b957 (diff) | |
Merge branch 'linus' into x86/x2apic
Conflicts:
arch/x86/kernel/cpu/cyrix.c
include/asm-x86/cpufeature.h
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
| -rw-r--r-- | arch/arm/plat-s3c24xx/cpu.c | 4 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/gpiolib.c | 12 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/pwm-clock.c | 6 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/pwm.c | 5 |
4 files changed, 13 insertions, 14 deletions
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index 6d60f0476bb8..89ce60eabd5b 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c | |||
| @@ -169,9 +169,7 @@ static struct map_desc s3c_iodesc[] __initdata = { | |||
| 169 | IODESC_ENT(UART) | 169 | IODESC_ENT(UART) |
| 170 | }; | 170 | }; |
| 171 | 171 | ||
| 172 | 172 | static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode) | |
| 173 | static struct cpu_table * | ||
| 174 | s3c_lookup_cpu(unsigned long idcode) | ||
| 175 | { | 173 | { |
| 176 | struct cpu_table *tab; | 174 | struct cpu_table *tab; |
| 177 | int count; | 175 | int count; |
diff --git a/arch/arm/plat-s3c24xx/gpiolib.c b/arch/arm/plat-s3c24xx/gpiolib.c index 849f8469714a..3caec6bad3eb 100644 --- a/arch/arm/plat-s3c24xx/gpiolib.c +++ b/arch/arm/plat-s3c24xx/gpiolib.c | |||
| @@ -39,7 +39,7 @@ static inline struct s3c24xx_gpio_chip *to_s3c_chip(struct gpio_chip *gpc) | |||
| 39 | * drivers themsevles. | 39 | * drivers themsevles. |
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | int s3c24xx_gpiolib_input(struct gpio_chip *chip, unsigned offset) | 42 | static int s3c24xx_gpiolib_input(struct gpio_chip *chip, unsigned offset) |
| 43 | { | 43 | { |
| 44 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); | 44 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); |
| 45 | void __iomem *base = ourchip->base; | 45 | void __iomem *base = ourchip->base; |
| @@ -58,7 +58,7 @@ int s3c24xx_gpiolib_input(struct gpio_chip *chip, unsigned offset) | |||
| 58 | return 0; | 58 | return 0; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | int s3c24xx_gpiolib_output(struct gpio_chip *chip, | 61 | static int s3c24xx_gpiolib_output(struct gpio_chip *chip, |
| 62 | unsigned offset, int value) | 62 | unsigned offset, int value) |
| 63 | { | 63 | { |
| 64 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); | 64 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); |
| @@ -86,7 +86,8 @@ int s3c24xx_gpiolib_output(struct gpio_chip *chip, | |||
| 86 | return 0; | 86 | return 0; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void s3c24xx_gpiolib_set(struct gpio_chip *chip, unsigned offset, int value) | 89 | static void s3c24xx_gpiolib_set(struct gpio_chip *chip, |
| 90 | unsigned offset, int value) | ||
| 90 | { | 91 | { |
| 91 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); | 92 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); |
| 92 | void __iomem *base = ourchip->base; | 93 | void __iomem *base = ourchip->base; |
| @@ -104,7 +105,7 @@ void s3c24xx_gpiolib_set(struct gpio_chip *chip, unsigned offset, int value) | |||
| 104 | local_irq_restore(flags); | 105 | local_irq_restore(flags); |
| 105 | } | 106 | } |
| 106 | 107 | ||
| 107 | int s3c24xx_gpiolib_get(struct gpio_chip *chip, unsigned offset) | 108 | static int s3c24xx_gpiolib_get(struct gpio_chip *chip, unsigned offset) |
| 108 | { | 109 | { |
| 109 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); | 110 | struct s3c24xx_gpio_chip *ourchip = to_s3c_chip(chip); |
| 110 | unsigned long val; | 111 | unsigned long val; |
| @@ -150,8 +151,7 @@ static int s3c24xx_gpiolib_banka_output(struct gpio_chip *chip, | |||
| 150 | return 0; | 151 | return 0; |
| 151 | } | 152 | } |
| 152 | 153 | ||
| 153 | 154 | static struct s3c24xx_gpio_chip gpios[] = { | |
| 154 | struct s3c24xx_gpio_chip gpios[] = { | ||
| 155 | [0] = { | 155 | [0] = { |
| 156 | .base = S3C24XX_GPIO_BASE(S3C2410_GPA0), | 156 | .base = S3C24XX_GPIO_BASE(S3C2410_GPA0), |
| 157 | .chip = { | 157 | .chip = { |
diff --git a/arch/arm/plat-s3c24xx/pwm-clock.c b/arch/arm/plat-s3c24xx/pwm-clock.c index ccfdc9d7ae4b..306cc9c6f9ef 100644 --- a/arch/arm/plat-s3c24xx/pwm-clock.c +++ b/arch/arm/plat-s3c24xx/pwm-clock.c | |||
| @@ -89,7 +89,7 @@ static unsigned long clk_pwm_scaler_getrate(struct clk *clk) | |||
| 89 | 89 | ||
| 90 | /* TODO - add set rate calls. */ | 90 | /* TODO - add set rate calls. */ |
| 91 | 91 | ||
| 92 | struct clk clk_timer_scaler[] = { | 92 | static struct clk clk_timer_scaler[] = { |
| 93 | [0] = { | 93 | [0] = { |
| 94 | .name = "pwm-scaler0", | 94 | .name = "pwm-scaler0", |
| 95 | .id = -1, | 95 | .id = -1, |
| @@ -102,7 +102,7 @@ struct clk clk_timer_scaler[] = { | |||
| 102 | }, | 102 | }, |
| 103 | }; | 103 | }; |
| 104 | 104 | ||
| 105 | struct clk clk_timer_tclk[] = { | 105 | static struct clk clk_timer_tclk[] = { |
| 106 | [0] = { | 106 | [0] = { |
| 107 | .name = "pwm-tclk0", | 107 | .name = "pwm-tclk0", |
| 108 | .id = -1, | 108 | .id = -1, |
| @@ -232,7 +232,7 @@ static int clk_pwm_tdiv_set_rate(struct clk *clk, unsigned long rate) | |||
| 232 | return 0; | 232 | return 0; |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | struct pwm_tdiv_clk clk_timer_tdiv[] = { | 235 | static struct pwm_tdiv_clk clk_timer_tdiv[] = { |
| 236 | [0] = { | 236 | [0] = { |
| 237 | .clk = { | 237 | .clk = { |
| 238 | .name = "pwm-tdiv", | 238 | .name = "pwm-tdiv", |
diff --git a/arch/arm/plat-s3c24xx/pwm.c b/arch/arm/plat-s3c24xx/pwm.c index 18c4bdc49a05..7a92c938542a 100644 --- a/arch/arm/plat-s3c24xx/pwm.c +++ b/arch/arm/plat-s3c24xx/pwm.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
| 20 | #include <linux/pwm.h> | 20 | #include <linux/pwm.h> |
| 21 | 21 | ||
| 22 | #include <asm/plat-s3c24xx/devs.h> | ||
| 22 | #include <asm/plat-s3c/regs-timer.h> | 23 | #include <asm/plat-s3c/regs-timer.h> |
| 23 | 24 | ||
| 24 | struct pwm_device { | 25 | struct pwm_device { |
| @@ -38,7 +39,7 @@ struct pwm_device { | |||
| 38 | unsigned char pwm_id; | 39 | unsigned char pwm_id; |
| 39 | }; | 40 | }; |
| 40 | 41 | ||
| 41 | #define pwm_dbg(_pwm, msg...) dev_info(&(_pwm)->pdev->dev, msg) | 42 | #define pwm_dbg(_pwm, msg...) dev_dbg(&(_pwm)->pdev->dev, msg) |
| 42 | 43 | ||
| 43 | static struct clk *clk_scaler[2]; | 44 | static struct clk *clk_scaler[2]; |
| 44 | 45 | ||
| @@ -168,7 +169,7 @@ void pwm_disable(struct pwm_device *pwm) | |||
| 168 | 169 | ||
| 169 | EXPORT_SYMBOL(pwm_disable); | 170 | EXPORT_SYMBOL(pwm_disable); |
| 170 | 171 | ||
| 171 | unsigned long pwm_calc_tin(struct pwm_device *pwm, unsigned long freq) | 172 | static unsigned long pwm_calc_tin(struct pwm_device *pwm, unsigned long freq) |
| 172 | { | 173 | { |
| 173 | unsigned long tin_parent_rate; | 174 | unsigned long tin_parent_rate; |
| 174 | unsigned int div; | 175 | unsigned int div; |
