On Mon, Apr 14, 2008 at 11:54:45AM +0200, Uwe Kleine-König wrote:Thanks. Well, tbh, I don't know which way to go on this. Each of the suggested ways have their downsides. However: + pdata->clk = clk_get(&pdev->dev, DRIVER_NAME); seems wrong - "uio" as a clock name? + /* XXX: better use dev_dbg, but which device should I use? + * info->uio_dev->dev isn't accessible here as struct uio_device+ * is opaque. + */ why not store a copy of 'dev' in struct uio_platdata ? + uiomem = &uioinfo->mem[0]; + for (i = 0; i < pdev->num_resources; ++i) { ... + ++uiomem; + } Who's to say there's pdev->num_resources entries in the 'mem' array? Shouldn't this loop also be limited to MAX_UIO_MAPS iterations (or maybe complain if there's more than MAX_UIO_MAPS)? +/* XXX: I thought there already exists something like STRINGIFY, but I could not + * find it ... + */ +#ifndef STRINGIFY +#define STRINGIFY(x) __STRINGIFY_HELPER(x) +#define __STRINGIFY_HELPER(x) #x +#endif #include <linux/stringify.h> ? --
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Martin Michlmayr | Network slowdown due to CFS |
git: | |
| Paweł Staszewski | rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
