diff options
-rw-r--r-- | arch/arm/mach-pxa/clock.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/clock.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/e740.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/e750.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/e800.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp-pxa300.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp-pxa320.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 2 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 14 |
9 files changed, 23 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/clock.c b/arch/arm/mach-pxa/clock.c index 40b774084514..db52d2c4791d 100644 --- a/arch/arm/mach-pxa/clock.c +++ b/arch/arm/mach-pxa/clock.c | |||
@@ -87,7 +87,7 @@ void clks_register(struct clk_lookup *clks, size_t num) | |||
87 | clkdev_add(&clks[i]); | 87 | clkdev_add(&clks[i]); |
88 | } | 88 | } |
89 | 89 | ||
90 | int clk_add_alias(char *alias, struct device *alias_dev, char *id, | 90 | int clk_add_alias(const char *alias, const char *alias_dev_name, char *id, |
91 | struct device *dev) | 91 | struct device *dev) |
92 | { | 92 | { |
93 | struct clk *r = clk_get(dev, id); | 93 | struct clk *r = clk_get(dev, id); |
@@ -96,7 +96,7 @@ int clk_add_alias(char *alias, struct device *alias_dev, char *id, | |||
96 | if (!r) | 96 | if (!r) |
97 | return -ENODEV; | 97 | return -ENODEV; |
98 | 98 | ||
99 | l = clkdev_alloc(r, alias, alias_dev ? dev_name(alias_dev) : NULL); | 99 | l = clkdev_alloc(r, alias, alias_dev_name); |
100 | clk_put(r); | 100 | clk_put(r); |
101 | if (!l) | 101 | if (!l) |
102 | return -ENODEV; | 102 | return -ENODEV; |
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index 4e9c613c6767..5599bceff738 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -69,6 +69,6 @@ extern void clk_pxa3xx_cken_disable(struct clk *); | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | void clks_register(struct clk_lookup *clks, size_t num); | 71 | void clks_register(struct clk_lookup *clks, size_t num); |
72 | int clk_add_alias(char *alias, struct device *alias_dev, char *id, | 72 | int clk_add_alias(const char *alias, const char *alias_name, char *id, |
73 | struct device *dev); | 73 | struct device *dev); |
74 | 74 | ||
diff --git a/arch/arm/mach-pxa/e740.c b/arch/arm/mach-pxa/e740.c index e0c3aaf1ecb3..54af7ed1397e 100644 --- a/arch/arm/mach-pxa/e740.c +++ b/arch/arm/mach-pxa/e740.c | |||
@@ -187,7 +187,7 @@ static void __init e740_init(void) | |||
187 | { | 187 | { |
188 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config)); | 188 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config)); |
189 | eseries_register_clks(); | 189 | eseries_register_clks(); |
190 | clk_add_alias("CLK_CK48M", &e740_t7l66xb_device.dev, | 190 | clk_add_alias("CLK_CK48M", e740_t7l66xb_device.name, |
191 | "UDCCLK", &pxa25x_device_udc.dev), | 191 | "UDCCLK", &pxa25x_device_udc.dev), |
192 | eseries_get_tmio_gpios(); | 192 | eseries_get_tmio_gpios(); |
193 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 193 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c index 84b050f1a996..16ae72150b1b 100644 --- a/arch/arm/mach-pxa/e750.c +++ b/arch/arm/mach-pxa/e750.c | |||
@@ -188,7 +188,7 @@ static struct platform_device *devices[] __initdata = { | |||
188 | static void __init e750_init(void) | 188 | static void __init e750_init(void) |
189 | { | 189 | { |
190 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e750_pin_config)); | 190 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e750_pin_config)); |
191 | clk_add_alias("CLK_CK3P6MI", &e750_tc6393xb_device.dev, | 191 | clk_add_alias("CLK_CK3P6MI", e750_tc6393xb_device.name, |
192 | "GPIO11_CLK", NULL), | 192 | "GPIO11_CLK", NULL), |
193 | eseries_get_tmio_gpios(); | 193 | eseries_get_tmio_gpios(); |
194 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 194 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
diff --git a/arch/arm/mach-pxa/e800.c b/arch/arm/mach-pxa/e800.c index f8924f6ca544..74ab09812a72 100644 --- a/arch/arm/mach-pxa/e800.c +++ b/arch/arm/mach-pxa/e800.c | |||
@@ -194,7 +194,7 @@ static struct platform_device *devices[] __initdata = { | |||
194 | 194 | ||
195 | static void __init e800_init(void) | 195 | static void __init e800_init(void) |
196 | { | 196 | { |
197 | clk_add_alias("CLK_CK3P6MI", &e800_tc6393xb_device.dev, | 197 | clk_add_alias("CLK_CK3P6MI", e800_tc6393xb_device.name, |
198 | "GPIO11_CLK", NULL), | 198 | "GPIO11_CLK", NULL), |
199 | eseries_get_tmio_gpios(); | 199 | eseries_get_tmio_gpios(); |
200 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 200 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa300.h b/arch/arm/mach-pxa/include/mach/mfp-pxa300.h index bc1fb33a6e70..928fbef9cbf3 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa300.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa300.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | /* Chip Select */ | 43 | /* Chip Select */ |
44 | #define GPIO1_nCS2 MFP_CFG(GPIO1, AF1) | ||
44 | #define GPIO2_nCS3 MFP_CFG(GPIO2, AF1) | 45 | #define GPIO2_nCS3 MFP_CFG(GPIO2, AF1) |
45 | 46 | ||
46 | /* AC97 */ | 47 | /* AC97 */ |
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa320.h b/arch/arm/mach-pxa/include/mach/mfp-pxa320.h index 67f8385ea548..80a0da9e092d 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa320.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa320.h | |||
@@ -38,6 +38,7 @@ | |||
38 | #define GPIO17_2_GPIO MFP_CFG(GPIO17_2, AF0) | 38 | #define GPIO17_2_GPIO MFP_CFG(GPIO17_2, AF0) |
39 | 39 | ||
40 | /* Chip Select */ | 40 | /* Chip Select */ |
41 | #define GPIO3_nCS2 MFP_CFG(GPIO3, AF1) | ||
41 | #define GPIO4_nCS3 MFP_CFG(GPIO4, AF1) | 42 | #define GPIO4_nCS3 MFP_CFG(GPIO4, AF1) |
42 | 43 | ||
43 | /* AC97 */ | 44 | /* AC97 */ |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 66b13802c99d..581dc105690c 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -919,7 +919,7 @@ static void __init tosa_init(void) | |||
919 | pxa2xx_set_spi_info(2, &pxa_ssp_master_info); | 919 | pxa2xx_set_spi_info(2, &pxa_ssp_master_info); |
920 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | 920 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); |
921 | 921 | ||
922 | clk_add_alias("CLK_CK3P6MI", &tc6393xb_device.dev, "GPIO11_CLK", NULL); | 922 | clk_add_alias("CLK_CK3P6MI", tc6393xb_device.name, "GPIO11_CLK", NULL); |
923 | 923 | ||
924 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 924 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
925 | } | 925 | } |
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 287aa1d2a13c..81c8bd5eca8e 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -882,10 +882,21 @@ static void __devinit init_pxafb_overlay(struct pxafb_info *fbi, | |||
882 | init_completion(&ofb->branch_done); | 882 | init_completion(&ofb->branch_done); |
883 | } | 883 | } |
884 | 884 | ||
885 | static inline int pxafb_overlay_supported(void) | ||
886 | { | ||
887 | if (cpu_is_pxa27x() || cpu_is_pxa3xx()) | ||
888 | return 1; | ||
889 | |||
890 | return 0; | ||
891 | } | ||
892 | |||
885 | static int __devinit pxafb_overlay_init(struct pxafb_info *fbi) | 893 | static int __devinit pxafb_overlay_init(struct pxafb_info *fbi) |
886 | { | 894 | { |
887 | int i, ret; | 895 | int i, ret; |
888 | 896 | ||
897 | if (!pxafb_overlay_supported()) | ||
898 | return 0; | ||
899 | |||
889 | for (i = 0; i < 2; i++) { | 900 | for (i = 0; i < 2; i++) { |
890 | init_pxafb_overlay(fbi, &fbi->overlay[i], i); | 901 | init_pxafb_overlay(fbi, &fbi->overlay[i], i); |
891 | ret = register_framebuffer(&fbi->overlay[i].fb); | 902 | ret = register_framebuffer(&fbi->overlay[i].fb); |
@@ -908,6 +919,9 @@ static void __devexit pxafb_overlay_exit(struct pxafb_info *fbi) | |||
908 | { | 919 | { |
909 | int i; | 920 | int i; |
910 | 921 | ||
922 | if (!pxafb_overlay_supported()) | ||
923 | return; | ||
924 | |||
911 | for (i = 0; i < 2; i++) | 925 | for (i = 0; i < 2; i++) |
912 | unregister_framebuffer(&fbi->overlay[i].fb); | 926 | unregister_framebuffer(&fbi->overlay[i].fb); |
913 | } | 927 | } |