diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-25 11:41:20 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-25 11:41:20 -0400 |
commit | 7bf7e370d5919112c223a269462cd0b546903829 (patch) | |
tree | 03ccc715239df14ae168277dbccc9d9cf4d8a2c8 /drivers/mtd/maps | |
parent | 68b1a1e786f29c900fa1c516a402e24f0ece622a (diff) | |
parent | d39dd11c3e6a7af5c20bfac40594db36cf270f42 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus-1
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6: (9356 commits)
[media] rc: update for bitop name changes
fs: simplify iget & friends
fs: pull inode->i_lock up out of writeback_single_inode
fs: rename inode_lock to inode_hash_lock
fs: move i_wb_list out from under inode_lock
fs: move i_sb_list out from under inode_lock
fs: remove inode_lock from iput_final and prune_icache
fs: Lock the inode LRU list separately
fs: factor inode disposal
fs: protect inode->i_state with inode->i_lock
lib, arch: add filter argument to show_mem and fix private implementations
SLUB: Write to per cpu data when allocating it
slub: Fix debugobjects with lockless fastpath
autofs4: Do not potentially dereference NULL pointer returned by fget() in autofs_dev_ioctl_setpipefd()
autofs4 - remove autofs4_lock
autofs4 - fix d_manage() return on rcu-walk
autofs4 - fix autofs4_expire_indirect() traversal
autofs4 - fix dentry leak in autofs4_expire_direct()
autofs4 - reinstate last used update on access
vfs - check non-mountpoint dentry might block in __follow_mount_rcu()
...
NOTE!
This merge commit was created to fix compilation error. The block
tree was merged upstream and removed the 'elv_queue_empty()'
function which the new 'mtdswap' driver is using. So a simple
merge of the mtd tree with upstream does not compile. And the
mtd tree has already be published, so re-basing it is not an option.
To fix this unfortunate situation, I had to merge upstream into the
mtd-2.6.git tree without committing, put the fixup patch on top of
this, and then commit this. The result is that we do not have commits
which do not compile.
In other words, this merge commit "merges" 3 things: the MTD tree, the
upstream tree, and the fixup patch.
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 15 | ||||
-rw-r--r-- | drivers/mtd/maps/sun_uflash.c | 8 |
2 files changed, 13 insertions, 10 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index c85be8312488..bd483f0c57e1 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c | |||
@@ -214,8 +214,7 @@ static void __devinit of_free_probes(const char **probes) | |||
214 | } | 214 | } |
215 | #endif | 215 | #endif |
216 | 216 | ||
217 | static int __devinit of_flash_probe(struct platform_device *dev, | 217 | static int __devinit of_flash_probe(struct platform_device *dev) |
218 | const struct of_device_id *match) | ||
219 | { | 218 | { |
220 | #ifdef CONFIG_MTD_PARTITIONS | 219 | #ifdef CONFIG_MTD_PARTITIONS |
221 | const char **part_probe_types; | 220 | const char **part_probe_types; |
@@ -223,7 +222,7 @@ static int __devinit of_flash_probe(struct platform_device *dev, | |||
223 | struct device_node *dp = dev->dev.of_node; | 222 | struct device_node *dp = dev->dev.of_node; |
224 | struct resource res; | 223 | struct resource res; |
225 | struct of_flash *info; | 224 | struct of_flash *info; |
226 | const char *probe_type = match->data; | 225 | const char *probe_type; |
227 | const __be32 *width; | 226 | const __be32 *width; |
228 | int err; | 227 | int err; |
229 | int i; | 228 | int i; |
@@ -233,6 +232,10 @@ static int __devinit of_flash_probe(struct platform_device *dev, | |||
233 | struct mtd_info **mtd_list = NULL; | 232 | struct mtd_info **mtd_list = NULL; |
234 | resource_size_t res_size; | 233 | resource_size_t res_size; |
235 | 234 | ||
235 | if (!dev->dev.of_match) | ||
236 | return -EINVAL; | ||
237 | probe_type = dev->dev.of_match->data; | ||
238 | |||
236 | reg_tuple_size = (of_n_addr_cells(dp) + of_n_size_cells(dp)) * sizeof(u32); | 239 | reg_tuple_size = (of_n_addr_cells(dp) + of_n_size_cells(dp)) * sizeof(u32); |
237 | 240 | ||
238 | /* | 241 | /* |
@@ -410,7 +413,7 @@ static struct of_device_id of_flash_match[] = { | |||
410 | }; | 413 | }; |
411 | MODULE_DEVICE_TABLE(of, of_flash_match); | 414 | MODULE_DEVICE_TABLE(of, of_flash_match); |
412 | 415 | ||
413 | static struct of_platform_driver of_flash_driver = { | 416 | static struct platform_driver of_flash_driver = { |
414 | .driver = { | 417 | .driver = { |
415 | .name = "of-flash", | 418 | .name = "of-flash", |
416 | .owner = THIS_MODULE, | 419 | .owner = THIS_MODULE, |
@@ -422,12 +425,12 @@ static struct of_platform_driver of_flash_driver = { | |||
422 | 425 | ||
423 | static int __init of_flash_init(void) | 426 | static int __init of_flash_init(void) |
424 | { | 427 | { |
425 | return of_register_platform_driver(&of_flash_driver); | 428 | return platform_driver_register(&of_flash_driver); |
426 | } | 429 | } |
427 | 430 | ||
428 | static void __exit of_flash_exit(void) | 431 | static void __exit of_flash_exit(void) |
429 | { | 432 | { |
430 | of_unregister_platform_driver(&of_flash_driver); | 433 | platform_driver_unregister(&of_flash_driver); |
431 | } | 434 | } |
432 | 435 | ||
433 | module_init(of_flash_init); | 436 | module_init(of_flash_init); |
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index 3582ba1f9b09..3f1cb328a574 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c | |||
@@ -108,7 +108,7 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp) | |||
108 | return 0; | 108 | return 0; |
109 | } | 109 | } |
110 | 110 | ||
111 | static int __devinit uflash_probe(struct platform_device *op, const struct of_device_id *match) | 111 | static int __devinit uflash_probe(struct platform_device *op) |
112 | { | 112 | { |
113 | struct device_node *dp = op->dev.of_node; | 113 | struct device_node *dp = op->dev.of_node; |
114 | 114 | ||
@@ -148,7 +148,7 @@ static const struct of_device_id uflash_match[] = { | |||
148 | 148 | ||
149 | MODULE_DEVICE_TABLE(of, uflash_match); | 149 | MODULE_DEVICE_TABLE(of, uflash_match); |
150 | 150 | ||
151 | static struct of_platform_driver uflash_driver = { | 151 | static struct platform_driver uflash_driver = { |
152 | .driver = { | 152 | .driver = { |
153 | .name = DRIVER_NAME, | 153 | .name = DRIVER_NAME, |
154 | .owner = THIS_MODULE, | 154 | .owner = THIS_MODULE, |
@@ -160,12 +160,12 @@ static struct of_platform_driver uflash_driver = { | |||
160 | 160 | ||
161 | static int __init uflash_init(void) | 161 | static int __init uflash_init(void) |
162 | { | 162 | { |
163 | return of_register_platform_driver(&uflash_driver); | 163 | return platform_driver_register(&uflash_driver); |
164 | } | 164 | } |
165 | 165 | ||
166 | static void __exit uflash_exit(void) | 166 | static void __exit uflash_exit(void) |
167 | { | 167 | { |
168 | of_unregister_platform_driver(&uflash_driver); | 168 | platform_driver_unregister(&uflash_driver); |
169 | } | 169 | } |
170 | 170 | ||
171 | module_init(uflash_init); | 171 | module_init(uflash_init); |