Remove ocp-proc.c
This patch completely removes drivers/ocp/ocp-proc.c from 2.5, along with all references to it - it's been terminally broken for some time now. Shall I commit this to linuxppc-2.5?
arch/ppc/platforms/4xx/Config.in renamed from home/dgibson/kernel/linuxppc-2.5/arch/ppc/platforms/4xx/Config.in +0 -3
@@ -133,9 +133,6 @@ -o "$CONFIG_XILINX_OCP" = "y" ]; then define_bool CONFIG_OCP y fi - if [ "$CONFIG_OCP" = "y" ]; then - bool 'OCP Device proc fs support (experimental)' CONFIG_OCP_PROC - fi bool "PCI support" CONFIG_PCI dep_bool 'Power Management support (experimental)' CONFIG_PM $CONFIG_EXPERIMENTAL
drivers/ocp/Makefile renamed from home/dgibson/kernel/linuxppc-2.5/drivers/ocp/Makefile +0 -1
@@ -14,7 +14,6 @@ export-objs := ocp.o ocp-driver.o ocp-probe.o ocp-hotplug.o obj-y += ocp.o ocp-driver.o ocp-probe.o -obj-$(CONFIG_OCP_PROC) += ocp-proc.o obj-$(CONFIG_PM) += ocp-power.o obj-$(CONFIG_HOTPLUG) += ocp-hotplug.o
drivers/ocp/ocp-hotplug.c renamed from home/dgibson/kernel/linuxppc-2.5/drivers/ocp/ocp-hotplug.c +0 -6
@@ -58,9 +58,6 @@ {list_add_tail (&dev->bus_list, &bus->devices);list_add_tail (&dev->global_list, &ocp_devices); -#ifdef CONFIG_PROC_FS -ocp_proc_attach_device (dev); -#endif /* notify userspace of new hotplug device */ run_sbin_hotplug (dev, TRUE); }
@@ -93,9 +90,6 @@list_del (&dev->bus_list);list_del (&dev->global_list);// ocp_free_resources(dev); -#ifdef CONFIG_PROC_FS -ocp_proc_detach_device (dev); -#endif /* notify userspace of hotplug device removal */ run_sbin_hotplug (dev, FALSE);
drivers/ocp/ocp-proc.c renamed from home/dgibson/kernel/linuxppc-2.5/drivers/ocp/ocp-proc.c +0 -235
235 lines not on this page · raw message
include/linux/ocp.h renamed from home/dgibson/kernel/linuxppc-2.5/include/linux/ocp.h +0 -2
@@ -242,8 +242,6 @@extern struct ocp_bus *ocp_scan_bus (int bus,void *sysdata);extern struct bus_type ocp_bus_type;extern struct ocp_device *ocp_get_dev (unsigned int device,int index); -extern int ocp_proc_attach_device (struct ocp_device *dev); -extern int ocp_proc_detach_device (struct ocp_device *dev);extern unsigned int ocp_get_device (unsigned int index);extern unsigned long ocp_get_paddr (unsigned int device,int dev_num);extern unsigned int ocp_get_max (unsigned int device);
--
David Gibson | For every complex problem there is a
[email protected] | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · David Gibson
This patch completely removes
drivers/ocp/ocp-proc.cfrom 2.5, along with all references to it - it's been terminally broken for some time now. Shall I commit this to linuxppc-2.5?
I think so. In a previous thread you brought this up and I think moving some of the provided infos into driverfs at a later point is the goal, correct? At any rate, it's the Right Thing To Do(tm).
Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 4 lines
Quoted 4 lines
This patch completely removes
drivers/ocp/ocp-proc.cfrom 2.5, along with all references to it - it's been terminally broken for some time now. Shall I commit this to linuxppc-2.5?
Using driverfs instead sounds fine to me. It's definitely the way to go if all the other /proc/bus/ denizens are moving to driverfs in the near future, anyhow. Even if not, and /proc/bus/ lives on for certain busses, "ocp" is something of an artificial bus anyhow, and using a driverfs interface with a structure more closely approximating the real bus structure of the platform should be a good thing.
--
Todd
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Matt Porter
Quoted 3 lines · David Gibson
This patch completely removes
drivers/ocp/ocp-proc.cfrom 2.5, along with all references to it - it's been terminally broken for some time now. Shall I commit this to linuxppc-2.5?I think so. In a previous thread you brought this up and I think moving some of the provided infos into driverfs at a later point is the goal, correct? At any rate, it's the Right Thing To Do(tm).
Done.
Some of the info - the actual list of devices/drivers - is already in driverfs, simply by virtue of the fact that we call device_register() and friends.
--
David Gibson | For every complex problem there is a
[email protected] | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/