Skip to contentSkip to conversation

Remove ocp-proc.c

PATCH David Gibson 1 participant 1 message Sep 11, 2002

lore
Share & tools
lore
#0 lore raw

Armin, please apply (to linuxppc-2.5).

This patch removes ocp-proc.c, the CONFIG_OCP_PROC option, and all references to it. It was broken (didn't compile) anyway, and from the fact that it breaks every time you change other things, I'm guess you don't test with this option enabled anyway. The OCP /proc entries should be obsoleted by the driverfs entries we get from device model integration, so I see no point in keeping it.

arch/ppc/platforms/4xx/Config.in renamed from home/dgibson/kernel/linuxppc-2.5/arch/ppc/platforms/4xx/Config.in +0 -3
diff -urN /home/dgibson/kernel/linuxppc-2.5/arch/ppc/platforms/4xx/Config.in linux-bluefish/arch/ppc/platforms/4xx/Config.in
@@ -128,9 +128,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
diff -urN /home/dgibson/kernel/linuxppc-2.5/drivers/ocp/Makefile linux-bluefish/drivers/ocp/Makefile
@@ -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
diff -urN /home/dgibson/kernel/linuxppc-2.5/drivers/ocp/ocp-hotplug.c linux-bluefish/drivers/ocp/ocp-hotplug.c
@@ -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
diff -urN /home/dgibson/kernel/linuxppc-2.5/include/linux/ocp.h linux-bluefish/include/linux/ocp.h
@@ -241,8 +241,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/