Skip to content

Commit

Permalink
[DRIVERS] Exclude some drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
disean authored and binarymaster committed Feb 4, 2025
1 parent 63bb0e1 commit 4d0395d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/input/i8042prt/i8042prt.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ DriverEntry(
{
PI8042_DRIVER_EXTENSION DriverExtension;
NTSTATUS Status;

return -1;
Status = IoAllocateDriverObjectExtension(
DriverObject,
DriverObject,
Expand Down
2 changes: 1 addition & 1 deletion drivers/parallel/parport/parport.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
ULONG i;

DPRINT("Parport DriverEntry\n");

return -1;
DriverObject->DriverUnload = DriverUnload;
DriverObject->DriverExtension->AddDevice = AddDevice;

Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/serial/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DriverEntry(
IN PUNICODE_STRING RegPath)
{
ULONG i;

return -1;
DriverObject->DriverUnload = DriverUnload;
DriverObject->DriverExtension->AddDevice = SerialAddDevice;

Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/floppy/fdc/fdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{
DPRINT("FDC: DriverEntry()\n");

return -1;
DriverObject->MajorFunction[IRP_MJ_CREATE] = FdcCreate;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = FdcClose;
// DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = FdcDeviceControl;
Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/port/buslogic/BusLogic958.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ DriverEntry(IN PVOID DriverObject,
UCHAR DeviceId[4] = { '1', '0', '4', '0' };

DebugPrint((TRACE,"\n BusLogic - Inside the DriverEntry function \n"));

return -1;
// Zero out structure.
for (i = 0; i < sizeof(HW_INITIALIZATION_DATA); i++)
{
Expand Down

0 comments on commit 4d0395d

Please sign in to comment.